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 b1d43dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 0 additions & 11 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
`java-gradle-plugin`
Expand All @@ -15,15 +13,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 b1d43dd

Please sign in to comment.