Merge pull request #23 from JetBrains/igor.demin/fix-java-toolchain

Add org.gradle.toolchains.foojay-resolver-convention
This commit is contained in:
Igor Demin
2023-09-12 22:15:53 +02:00
committed by GitHub
3 changed files with 10 additions and 6 deletions

View File

@@ -29,10 +29,10 @@ android {
versionName = "1.0"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
jvmToolchain(11)
jvmToolchain(17)
}
}

View File

@@ -27,6 +27,10 @@ pluginManagement {
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.4.0")
}
dependencyResolutionManagement {
repositories {
mavenCentral()

View File

@@ -59,10 +59,10 @@ android {
minSdk = (findProperty("android.minSdk") as String).toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
jvmToolchain(11)
jvmToolchain(17)
}
}