Add Linder to build CI

This commit is contained in:
Chemaclass
2023-03-07 19:09:26 +01:00
parent c4c8c0fbf7
commit 2d92e1d444
5 changed files with 15 additions and 14 deletions

View File

@@ -13,4 +13,11 @@ plugins {
id 'com.android.library' version '7.4.1' apply false
id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
id 'org.jetbrains.kotlin.jvm' version '1.8.10' apply false
}
}
task installGitHook(type: Copy) {
from new File(rootProject.rootDir, 'pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
tasks.getByPath(':app:preBuild').dependsOn installGitHook