-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle
41 lines (30 loc) · 857 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
buildscript {
ext.kotlin_version = '1.4.10'
repositories {
google()
jcenter()
gradlePluginPortal()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.hiya:jacoco-android:0.2"
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.2.1"
classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task installGitHook(type: Copy) {
from new File(rootProject.rootDir, 'pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
tasks.getByPath(':library:preBuild').dependsOn installGitHook
task clean(type: Delete) {
delete rootProject.buildDir
}