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
commit d7e64afa5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 6 deletions

View File

@ -29,10 +29,10 @@ android {
versionName = "1.0" versionName = "1.0"
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_17
} }
kotlin { 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 { dependencyResolutionManagement {
repositories { repositories {
mavenCentral() mavenCentral()

View File

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