|
1
|
allprojects { |
|
2
|
repositories { |
|
3
|
google() |
|
4
|
mavenCentral() |
|
5
|
} |
|
6
|
} |
|
7
|
|
|
8
|
val newBuildDir: Directory = |
|
9
|
rootProject.layout.buildDirectory |
|
10
|
.dir("../../build") |
|
11
|
.get() |
|
12
|
rootProject.layout.buildDirectory.value(newBuildDir) |
|
13
|
|
|
14
|
subprojects { |
|
15
|
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name) |
|
16
|
project.layout.buildDirectory.value(newSubprojectBuildDir) |
|
17
|
} |
|
18
|
subprojects { |
|
19
|
project.evaluationDependsOn(":app") |
|
20
|
} |
|
21
|
|
|
22
|
tasks.register<Delete>("clean") { |
|
23
|
delete(rootProject.layout.buildDirectory) |
|
24
|
} |