-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
34 lines (30 loc) · 934 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
buildscript {
apply from: rootProject.file("dependencies.gradle")
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath deps.gradle_plugins.android
classpath deps.gradle_plugins.kotlin
classpath deps.gradle_plugins.ktlint
classpath deps.gradle_plugins.spotless
classpath deps.gradle_plugins.safe_args
classpath deps.gradle_plugins.maven
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task installGitHook(type: Copy) {
from new File(rootProject.rootDir, 'scripts/git-hooks/pre-commit')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
tasks.getByPath(':sample:preBuild').dependsOn installGitHook
tasks.getByPath(':core:preBuild').dependsOn installGitHook
tasks.getByPath(':navigation:preBuild').dependsOn installGitHook