Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert java target to Java 1.8 #328

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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