Files

40 lines
1016 B
Kotlin
Raw Permalink Normal View History

2025-05-02 02:24:12 +08:00
allprojects {
repositories {
google()
mavenCentral()
}
}
2025-12-16 11:23:09 +08:00
2025-07-31 17:09:18 +08:00
val newBuildDir: Directory =
rootProject.layout.buildDirectory
.dir("../../build")
.get()
2025-05-02 02:24:12 +08:00
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
2025-05-02 02:24:12 +08:00
project.evaluationDependsOn(":app")
}
2026-05-27 15:16:51 +08:00
gradle.projectsEvaluated {
allprojects {
tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_17.toString()
targetCompatibility = JavaVersion.VERSION_17.toString()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
}
}
}
}
2025-05-02 02:24:12 +08:00
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}