Skip to content

Commit

Permalink
Revert java target to Java 1.8 (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidliu authored Nov 28, 2023
1 parent 188e244 commit dd402db
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ subprojects {
toggleOffOn()
}
}

// From Gradle 8 onwards, Kapt no longer automatically picks up jvmTarget
// from normal KotlinOptions. Must be manually set.
// JvmToolchain should not be used since it changes the actual JDK used.
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KaptGenerateStubs).configureEach {
kotlinOptions {
jvmTarget = java_version
}
}

}

task clean(type: Delete) {
Expand Down
2 changes: 1 addition & 1 deletion deps.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ext {
compose_version = '1.2.1'
compose_compiler_version = '1.4.5'
kotlin_version = '1.8.20'
java_version = JavaVersion.VERSION_17
java_version = JavaVersion.VERSION_1_8
dokka_version = '1.5.0'
androidSdk = [
compileVersion: 33,
Expand Down
5 changes: 5 additions & 0 deletions livekit-lint/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ java {
sourceCompatibility = java_version
targetCompatibility = java_version
}
compileKotlin {
kotlinOptions {
jvmTarget = java_version
}
}

dependencies {

Expand Down

0 comments on commit dd402db

Please sign in to comment.