allprojects { repositories { google() mavenCentral() } } val newBuildDir: Directory = rootProject.layout.buildDirectory .dir("../../build") .get() rootProject.layout.buildDirectory.value(newBuildDir) subprojects { val rootPath = rootProject.projectDir.absolutePath if (project.projectDir.absolutePath.startsWith(rootPath.substring(0, 3))) { val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name) project.layout.buildDirectory.value(newSubprojectBuildDir) } // Java ve Kotlin'i 17'ye zorla afterEvaluate { if (project.hasProperty("android")) { configure { compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } } } tasks.withType().configureEach { compilerOptions { jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17) } } } } tasks.register("clean") { delete(rootProject.layout.buildDirectory) }