Skip to content

Commit

Permalink
Auto-provision JDK 11 if one isn't installed.
Browse files Browse the repository at this point in the history
Fixes #4.
  • Loading branch information
christiandeange committed Feb 10, 2024
1 parent f6d414f commit a700193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 0 additions & 9 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ dependencies {
compileOnly(kotlin("gradle-plugin"))
}

tasks.withType<JavaCompile>().configureEach { options.release.set(11) }
tasks.withType<KotlinCompile>().configureEach { kotlinOptions.jvmTarget = "11" }

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("11"))
}
}

gradlePlugin {
plugins {
create("ozone-android") {
Expand Down
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ dependencyResolutionManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

rootProject.name = "ozone"

// Sample app modules
Expand Down

0 comments on commit a700193

Please sign in to comment.