mirror of
https://github.com/apple/pkl.git
synced 2026-03-27 11:31:11 +01:00
* Remove unnecessary strictfp modifier * Add annotations to address Truffle DSL warnings (@Idempotent, @Exclusive) * Adjust build logic to allow building cross-arch on macOS * Add warning suppression for specialization limit (left this one as a TODO)
34 lines
771 B
Kotlin
34 lines
771 B
Kotlin
import org.jetbrains.kotlin.config.JvmTarget
|
|
|
|
plugins {
|
|
`kotlin-dsl`
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.downloadTaskPlugin)
|
|
implementation(libs.spotlessPlugin)
|
|
implementation(libs.kotlinPlugin) {
|
|
exclude(module = "kotlin-android-extensions")
|
|
}
|
|
implementation(libs.shadowPlugin)
|
|
|
|
// fix from the Gradle team: makes version catalog symbols available in build scripts
|
|
// see here for more: https://github.com/gradle/gradle/issues/15383
|
|
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlin {
|
|
target {
|
|
compilations.configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
}
|
|
}
|