|
|
|
|
@ -25,14 +25,15 @@ group = "com.google.samples.apps.nowinandroid.buildlogic"
|
|
|
|
|
|
|
|
|
|
// Configure the build-logic plugins to target JDK 17
|
|
|
|
|
// This matches the JDK used to build the project, and is not related to what is running on device.
|
|
|
|
|
val javaVersion = System.getProperty("javaVersion","17")
|
|
|
|
|
java {
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
sourceCompatibility = JavaVersion.toVersion(javaVersion)
|
|
|
|
|
targetCompatibility = JavaVersion.toVersion(javaVersion)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
compilerOptions {
|
|
|
|
|
jvmTarget = JvmTarget.JVM_17
|
|
|
|
|
jvmTarget = JvmTarget.fromTarget(javaVersion)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|