Skip to content

Commit

Permalink
Properly compile sources for Java 11 bytecode.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandeange committed Jan 31, 2023
1 parent 5632502 commit f81d766
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 4 additions & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ dependencies {
implementation(libs.maven.publish)
}

kotlinDslPluginOptions {
jvmTarget.set("11")
}

gradlePlugin {
plugins {
create("build-logic") {
Expand Down
3 changes: 2 additions & 1 deletion build-logic/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ rootProject.name = "build-logic"

pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
gradlePluginPortal()
}
}

Expand All @@ -19,5 +19,6 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
6 changes: 2 additions & 4 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ tasks.test {
}
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
kotlinDslPluginOptions {
jvmTarget.set("11")
}

kotlin {
Expand All @@ -48,6 +48,4 @@ kotlin {
}
}
}

jvmToolchain(11)
}
6 changes: 2 additions & 4 deletions gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ dependencies {
implementation(libs.agp.api)
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
kotlinDslPluginOptions {
jvmTarget.set("11")
}

kotlin {
Expand All @@ -28,8 +28,6 @@ kotlin {
}
}
}

jvmToolchain(11)
}

gradlePlugin {
Expand Down
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ rootProject.name = "aaraar"

pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
gradlePluginPortal()
}
}

Expand All @@ -13,6 +13,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}

Expand Down

0 comments on commit f81d766

Please sign in to comment.