Skip to content

Commit

Permalink
Build for JDK 17 and require minimum Gradle 8.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 10, 2025
1 parent 1ba60a9 commit af8a5ea
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

plugins {
`kotlin-dsl`
Expand Down Expand Up @@ -27,12 +26,11 @@ dependencies {
kotlin {
explicitApi()
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(8))
languageVersion = JavaLanguageVersion.of(17)
}
compilerOptions {
apiVersion = KotlinVersion.KOTLIN_1_4
jvmTarget = JvmTarget.JVM_1_8
freeCompilerArgs = listOf("-opt-in=kotlin.io.path.ExperimentalPathApi")
jvmTarget = JvmTarget.JVM_17
freeCompilerArgs = listOf("-opt-in=kotlin.io.path.ExperimentalPathApi", "-Xjdk-release=17")
}
}

Expand All @@ -58,6 +56,7 @@ indra {
}
}
}
javaVersions().target(17)
signWithKeyFromProperties("signingKey", "signingPassword")
}

Expand Down Expand Up @@ -107,3 +106,7 @@ indraPluginPublishing {
tags("waterfall", "proxy")
)
}

configurations.runtimeElements {
attributes.attribute(GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE, objects.named(GradleVersion.current().version))
}

0 comments on commit af8a5ea

Please sign in to comment.