Skip to content

Commit

Permalink
start setting -Xjdk-target
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Aug 12, 2024
1 parent 02c2214 commit f165eb5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions maestro-cli/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jreleaser.model.Active.ALWAYS
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
import org.jreleaser.model.Stereotype
import java.util.Properties

Expand Down Expand Up @@ -65,6 +66,12 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.named("compileKotlin", KotlinCompilationTask::class.java) {
compilerOptions {
freeCompilerArgs.addAll("-Xjdk-release=1.8")
}
}

tasks.create("createProperties") {
dependsOn("processResources")

Expand Down
8 changes: 8 additions & 0 deletions maestro-utils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask

plugins {
id("maven-publish")
alias(libs.plugins.kotlin.jvm)
Expand All @@ -17,6 +19,12 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.named("compileKotlin", KotlinCompilationTask) {
compilerOptions {
freeCompilerArgs.addAll("-Xjdk-release=1.8")
}
}

plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
Expand Down

0 comments on commit f165eb5

Please sign in to comment.