2023-08-16 15:29:45 -03:00
|
|
|
import org.gradle.kotlin.dsl.extra
|
|
|
|
|
2023-03-31 14:05:25 -04:00
|
|
|
buildscript {
|
2023-06-20 14:49:00 -04:00
|
|
|
val kotlinVersion by extra("1.8.10")
|
2023-03-31 14:05:25 -04:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
|
|
|
}
|
|
|
|
}
|
2023-06-20 14:49:00 -04:00
|
|
|
|
2023-08-16 15:29:45 -03:00
|
|
|
apply(from = "${rootDir}/../constants.gradle.kts")
|
|
|
|
|
|
|
|
val signalKotlinJvmTarget: String by extra
|
|
|
|
|
2023-06-20 14:49:00 -04:00
|
|
|
allprojects {
|
|
|
|
// Needed because otherwise the kapt task defaults to jvmTarget 17, which "poisons the well" and requires us to bump up too
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
|
|
|
kotlinOptions {
|
2023-08-16 15:29:45 -03:00
|
|
|
jvmTarget = signalKotlinJvmTarget
|
2023-06-20 14:49:00 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|