Skip to content

Commit

Permalink
Upgrade Java to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Abrynos committed Feb 18, 2023
1 parent f6f9c35 commit a531776
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ android {

javaCompileOptions {
annotationProcessorOptions {
arguments["room.incremental"] = "true"
arguments += [
"room.schemaLocation": "$projectDir/schemas",
"room.incremental" : "true"
]
}
}
signingConfig signingConfigs.debug
Expand All @@ -61,17 +64,14 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(18))
languageVersion.set(JavaLanguageVersion.of(11))
}
// Or shorter:
jvmToolchain(18)
// For example:
jvmToolchain(8)
jvmToolchain(11)
}
buildFeatures {
viewBinding true
Expand Down Expand Up @@ -103,6 +103,7 @@ dependencies {

def room_version = "2.5.0"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation fileTree(include: ["*.jar"], dir: "libs")

Expand Down

0 comments on commit a531776

Please sign in to comment.