Skip to content

Commit

Permalink
Auto-resolve JDK for included builds too.
Browse files Browse the repository at this point in the history
Fixes #6.
  • Loading branch information
christiandeange committed Feb 11, 2024
1 parent b1d43dd commit 0bfa15c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ plugins {
kotlin("jvm") version libs.versions.kotlin
}

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

dependencies {
implementation(libs.kotlinx.abi)
implementation(libs.maven.publish)
Expand Down
4 changes: 4 additions & 0 deletions build-logic/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ dependencyResolutionManagement {
}
}

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

rootProject.name = "build-logic"
6 changes: 6 additions & 0 deletions generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ plugins {
setProperty("POM_NAME", "AT Protocol for Kotlin Generator")
setProperty("POM_DESCRIPTION", "Gradle Plugin to generate AT Protocol classes.")

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

dependencies {
api(kotlin("gradle-plugin"))
api(kotlin("serialization"))
Expand Down
4 changes: 4 additions & 0 deletions generator/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ dependencyResolutionManagement {
}
}

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

rootProject.name = "generator"

include(":api-gen-runtime")
Expand Down

0 comments on commit 0bfa15c

Please sign in to comment.