cff6d8cf17
...from script-util fix daemon usage in repls define compiler classpath for script-util tests explicitly minor refactorings in the build scripts for better import into idea
27 lines
916 B
Kotlin
27 lines
916 B
Kotlin
|
|
description = "Sample Kotlin JSR 223 scripting jar with daemon (out-of-process) compilation and local (in-process) evaluation"
|
|
|
|
apply { plugin("kotlin") }
|
|
|
|
val compilerClasspath by configurations.creating
|
|
|
|
dependencies {
|
|
testCompile(project(":kotlin-stdlib"))
|
|
testCompile(project(":kotlin-script-runtime"))
|
|
testCompile(project(":kotlin-script-util"))
|
|
testCompile(project(":kotlin-daemon-client"))
|
|
testCompile(commonDep("junit:junit"))
|
|
testCompile(project(":kotlin-test:kotlin-test-junit"))
|
|
testRuntime(project(":kotlin-reflect"))
|
|
compilerClasspath(projectRuntimeJar(":kotlin-compiler"))
|
|
compilerClasspath(projectDist(":kotlin-reflect"))
|
|
compilerClasspath(projectDist(":kotlin-stdlib"))
|
|
compilerClasspath(projectDist(":kotlin-script-runtime"))
|
|
}
|
|
|
|
projectTest {
|
|
doFirst {
|
|
systemProperty("kotlin.compiler.classpath", compilerClasspath.asFileTree.asPath)
|
|
}
|
|
}
|