mirror of
https://github.com/apple/pkl.git
synced 2026-01-17 00:47:07 +01:00
37 lines
863 B
Kotlin
37 lines
863 B
Kotlin
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
|
|
|
|
plugins {
|
|
pklAllProjects
|
|
pklKotlinTest
|
|
}
|
|
|
|
sourceSets {
|
|
test {
|
|
java {
|
|
srcDir(file("modules/pkl-core/examples"))
|
|
srcDir(file("modules/pkl-config-java/examples"))
|
|
srcDir(file("modules/java-binding/examples"))
|
|
}
|
|
val kotlin = project.extensions
|
|
.getByType<KotlinJvmProjectExtension>()
|
|
.sourceSets[name]
|
|
.kotlin
|
|
kotlin.srcDir(file("modules/kotlin-binding/examples"))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(projects.pklCore)
|
|
testImplementation(projects.pklConfigJava)
|
|
testImplementation(projects.pklConfigKotlin)
|
|
testImplementation(projects.pklCommonsTest)
|
|
testImplementation(libs.junitEngine)
|
|
testImplementation(libs.antlrRuntime)
|
|
}
|
|
|
|
tasks.test {
|
|
inputs.files(fileTree("modules").matching {
|
|
include("**/pages/*.adoc")
|
|
})
|
|
}
|