Refactor context classpath discovery, share it to idea's jsr223 host...
...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
This commit is contained in:
@@ -3,15 +3,24 @@ description = "Sample Kotlin JSR 223 scripting jar with daemon (out-of-process)
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
|
||||
val compilerClasspath by configurations.creating
|
||||
|
||||
dependencies {
|
||||
compile(projectDist(":kotlin-stdlib"))
|
||||
compile(projectDist(":kotlin-script-runtime"))
|
||||
compile(projectRuntimeJar(":kotlin-compiler"))
|
||||
compile(project(":kotlin-script-util"))
|
||||
compile(projectRuntimeJar(":kotlin-daemon-client"))
|
||||
testCompile(project(":kotlin-stdlib"))
|
||||
testCompile(project(":kotlin-script-runtime"))
|
||||
testCompile(project(":kotlin-script-util"))
|
||||
testCompile(project(":kotlin-daemon-client"))
|
||||
testCompile(commonDep("junit:junit"))
|
||||
testCompile(projectDist(":kotlin-test:kotlin-test-junit"))
|
||||
testRuntime(projectDist(":kotlin-reflect"))
|
||||
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()
|
||||
projectTest {
|
||||
doFirst {
|
||||
systemProperty("kotlin.compiler.classpath", compilerClasspath.asFileTree.asPath)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user