-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
41 lines (34 loc) · 928 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 {
apply from: 'scripts/versions.gradle'
repositories {
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath deps.build_tools
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21"
classpath deps.ktlint
classpath deps.detekt
classpath deps.ben_manes
classpath deps.safeargs
classpath deps.spotless
classpath deps.dokka
}
}
apply from: "spotless/spotless.gradle"
apply from: "scripts/githooks.gradle"
subprojects {
apply from: "../scripts/ktlint.gradle"
apply from: "../scripts/detekt.gradle"
apply from: "../scripts/versionsplugin.gradle"
}
//task clean(type: Delete) {
// delete rootProject.buildDir
//}
afterEvaluate {
// We install the hook at the first occasion
tasks['clean'].dependsOn installGitHooks
}