-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
50 lines (41 loc) · 1.3 KB
/
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
42
43
44
45
46
47
48
49
50
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.configFile = { name ->
rootProject.file("config/$name")
}
apply from: configFile('dependencies.gradle')
repositories {
google()
gradlePluginPortal()
mavenCentral()
jcenter()
}
dependencies {
classpath deps.gradlePlugins.android
classpath deps.gradlePlugins.kotlin
classpath deps.gradlePlugins.ktlint
classpath deps.gradlePlugins.detekt
classpath deps.gradlePlugins.versions
classpath deps.gradlePlugins.kotlinAllOpen
classpath deps.gradlePlugins.staticAnalysis
}
}
// Needed for ktlint setup in `static-analysis.gradle`
ext.ReporterType = org.jlleitschuh.gradle.ktlint.reporter.ReporterType
apply from: configFile('jacoco-full-report.gradle')
subprojects {
repositories {
google()
mavenCentral()
jcenter()
}
apply from: configFile('kotlin-open-for-testing.gradle')
apply from: configFile('dependency-resolution.gradle')
if (!name.contains('test-support')) {
apply from: configFile('jacoco.gradle')
apply from: configFile('static-analysis.gradle')
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}