-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle.kts
47 lines (40 loc) · 1013 Bytes
/
build.gradle.kts
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
42
43
44
45
46
47
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(Config.Dependencies.gradleVersion)
classpath(Config.Dependencies.kotlin)
classpath(Config.Dependencies.navigationSafeArgs)
classpath(Config.Dependencies.hilt)
}
}
plugins {
id(Config.Plugins.ktLint) version Versions.ktLint
}
subprojects {
apply(plugin = Config.Plugins.ktLint) // To apply ktLint to all included modules
repositories {
mavenCentral()
}
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
debug.set(true)
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven(url = Config.Dependencies.jitPackURL)
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
tasks.register("installGitHooks", Copy::class) {
from("${rootProject.rootDir}/pre-commit")
into("${rootProject.rootDir}/.git/hooks")
}