Skip to content

Commit

Permalink
Fix Java Version
Browse files Browse the repository at this point in the history
  • Loading branch information
romansavka-mq committed Jul 8, 2024
1 parent 778eaef commit 3e677f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gradle/commonModuleSetup.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins.withId("com.android.library") {
def setupJava() {
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(11))
languageVersion.set(JavaLanguageVersion.of(17))
}
}
compileKotlin.kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
Expand All @@ -40,8 +40,8 @@ def setupAndroid(isApp) {

/* remove after https://issuetracker.google.com/issues/260059413 */
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

lintOptions {
Expand All @@ -67,7 +67,7 @@ def setupAndroid(isApp) {
plugins.withId("org.jetbrains.kotlin.android") {
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(11))
languageVersion.set(JavaLanguageVersion.of(17))
}
}

Expand Down

0 comments on commit 3e677f9

Please sign in to comment.