Files
pkl/pkl-server/pkl-server.gradle.kts
Sam Gammon 1e50200969 Use Gradle typed project accessors
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>
2024-02-21 11:36:02 +00:00

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
}