mirror of
https://github.com/apple/pkl.git
synced 2026-03-26 19:11:12 +01:00
- Fix and clean up the pkl-commons-test build script. - Change tests to read test packages/certs directly from the file system instead of packaging and reading them from the class path. - Update expected checksums of some test packages. - Fix a conflict between Pkl's and Gradle's Kotlin libraries in the pkl-gradle project. - Fix build deprecation warnings. - Ensure Gradle distribution integrity with `distributionSha256Sum`. - Manually verify integrity of Gradle wrapper added by this commit.
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_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlin {
|
|
target {
|
|
compilations.configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = "11"
|
|
}
|
|
}
|
|
}
|
|
}
|