creek
The AI Image Editor of 2030git clone https://github.com/maydayv7/creek
android/build.gradle.kts (1076B)
1allprojects {
2 repositories {
3 google()
4 mavenCentral()
5 }
6}
7
8val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
9rootProject.layout.buildDirectory.value(newBuildDir)
10
11subprojects {
12 val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
13 project.layout.buildDirectory.value(newSubprojectBuildDir)
14}
15subprojects {
16 project.evaluationDependsOn(":app")
17}
18
19tasks.register<Delete>("clean") {
20 delete(rootProject.layout.buildDirectory)
21}
22
23subprojects {
24 pluginManager.withPlugin("com.android.library") {
25 val android = extensions.findByName("android")
26 if (android != null) {
27 val compileOptions = android.javaClass.getMethod("getCompileOptions").invoke(android)
28 compileOptions.javaClass.getMethod("setSourceCompatibility", JavaVersion::class.java).invoke(compileOptions, JavaVersion.VERSION_17)
29 compileOptions.javaClass.getMethod("setTargetCompatibility", JavaVersion::class.java).invoke(compileOptions, JavaVersion.VERSION_17)
30 }
31 }
32}