Skip to content

Commit

Permalink
set -Xjdk-release=1.8 in all projects that apply KGP
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Aug 12, 2024
1 parent af8d087 commit a119d96
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.kotlin.jvm)
Expand All @@ -12,6 +14,12 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

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

detekt {
buildUponDefaultConfig = true
allRules = false
Expand Down
8 changes: 8 additions & 0 deletions maestro-ios-driver/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 Down Expand Up @@ -26,6 +28,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
8 changes: 8 additions & 0 deletions maestro-orchestra-models/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 @@ -15,6 +17,12 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

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

dependencies {
implementation(project(path: ":maestro-client"))

Expand Down
6 changes: 6 additions & 0 deletions maestro-studio/server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

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

dependencies {
implementation(project(":maestro-orchestra"))
implementation(project(":maestro-client"))
Expand Down

0 comments on commit a119d96

Please sign in to comment.