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

Update JVM target to 11 #333

Merged
merged 1 commit into from
Oct 11, 2023
Merged
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
Update JVM target to 11
  • Loading branch information
fondesa committed Oct 11, 2023
commit 971ede81097402d80dfe0d03608763a0f5460772
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class AndroidModulePlugin : Plugin<Project> {
buildToolsVersion = androidProperties.getProperty("android.config.buildTools")
defaultConfig.minSdk = androidProperties.getProperty("android.config.minSdk").toInt()
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
lint.warningsAsErrors = warningsAsErrors
testOptions.unitTests.apply {
Expand All @@ -55,7 +55,7 @@ class AndroidModulePlugin : Plugin<Project> {
}
tasks.withType(KotlinCompile::class.java) { task ->
task.compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
jvmTarget.set(JvmTarget.JVM_11)
allWarningsAsErrors.set(warningsAsErrors)
if ("UnitTest" !in task.name) {
freeCompilerArgs.add("-Xexplicit-api=strict")
Expand Down