mirror of
https://github.com/apple/pkl.git
synced 2026-03-23 01:29:20 +01:00
This change activates the `TYPESAFE_PROJECT_ACCESSORS` feature preview in Gradle, and switches to such accessors instead of string-based project references, where possible Relates-To: apple/pkl#204 Signed-off-by: Sam Gammon <sam@elide.ventures>
30 lines
626 B
Kotlin
30 lines
626 B
Kotlin
plugins {
|
|
pklAllProjects
|
|
pklJavaLibrary
|
|
pklKotlinLibrary
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.pklCore)
|
|
implementation(libs.msgpack)
|
|
implementation(libs.truffleApi)
|
|
implementation(libs.antlrRuntime)
|
|
|
|
testImplementation(projects.pklCommonsTest)
|
|
}
|
|
|
|
tasks.test {
|
|
inputs.dir("src/test/files/SnippetTests/input")
|
|
inputs.dir("src/test/files/SnippetTests/output")
|
|
dependsOn(unitTests)
|
|
|
|
useJUnitPlatform {
|
|
includeEngines("SnippetTestEngine")
|
|
}
|
|
}
|
|
|
|
val unitTests by tasks.registering(Test::class) {
|
|
testClassesDirs = files(tasks.test.get().testClassesDirs)
|
|
classpath = tasks.test.get().classpath
|
|
}
|