You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
907 B

buildscript {
ext.kotlin_version = '1.9.0'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
4 months ago
allprojects {
repositories {
google()
mavenCentral()
}
}
// ✅ Add this block to apply the Kotlin flag to all subprojects
subprojects {
afterEvaluate { project ->
project.tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { task ->
task.kotlinOptions.freeCompilerArgs += ['-Xskip-metadata-version-check']
}
}
}
rootProject.buildDir = '../build'
4 months ago
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
4 months ago
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}