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 1.8'e zorla tasks.withType().configureEach { sourceCompatibility = "1.8" targetCompatibility = "1.8" } tasks.withType().configureEach { compilerOptions { jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8) } } } tasks.register("clean") { delete(rootProject.layout.buildDirectory) }