-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
37 lines (31 loc) · 927 Bytes
/
build.gradle.kts
File metadata and controls
37 lines (31 loc) · 927 Bytes
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
allprojects {
repositories {
google()
mavenCentral()
}
}
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
// 👇 MOVED UP: This forces the plugins to use Android SDK 36.
subprojects {
afterEvaluate {
extensions.findByName("android")?.let { ext ->
(ext as? com.android.build.gradle.BaseExtension)?.apply {
compileSdkVersion(36)
if (namespace == null) {
namespace = project.group.toString()
}
}
}
}
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}