Add new REPL API JVM implementation
This commit is contained in:
committed by
Ilya Chernikov
parent
4c2c44b106
commit
d2fec96f38
@@ -0,0 +1,50 @@
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
jvmTarget = "1.8"
|
||||
|
||||
val allTestsRuntime by configurations.creating
|
||||
val testCompile by configurations
|
||||
testCompile.extendsFrom(allTestsRuntime)
|
||||
val embeddableTestRuntime by configurations.creating {
|
||||
extendsFrom(allTestsRuntime)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
allTestsRuntime(commonDep("junit"))
|
||||
testCompile(project(":kotlin-scripting-ide-services"))
|
||||
testCompile(project(":kotlin-scripting-compiler"))
|
||||
testCompile(project(":compiler:cli-common"))
|
||||
|
||||
testRuntimeOnly(project(":kotlin-compiler"))
|
||||
testRuntimeOnly(commonDep("org.jetbrains.intellij.deps", "trove4j"))
|
||||
testRuntimeOnly(project(":idea:ide-common")) { isTransitive = false }
|
||||
|
||||
embeddableTestRuntime(project(":kotlin-scripting-ide-services-embeddable"))
|
||||
embeddableTestRuntime(project(":kotlin-compiler-embeddable"))
|
||||
embeddableTestRuntime(testSourceSet.output)
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" {}
|
||||
"test" { projectDefault() }
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
||||
kotlinOptions.freeCompilerArgs += "-Xallow-kotlin-package"
|
||||
}
|
||||
|
||||
projectTest(parallel = true) {
|
||||
dependsOn(":dist")
|
||||
workingDir = rootDir
|
||||
}
|
||||
|
||||
// This doesn;t work now due to conflicts between embeddable compiler contents and intellij sdk modules
|
||||
// To make it work, the dependencies to the intellij sdk should be eliminated
|
||||
projectTest(taskName = "embeddableTest", parallel = true) {
|
||||
workingDir = rootDir
|
||||
dependsOn(embeddableTestRuntime)
|
||||
classpath = embeddableTestRuntime
|
||||
}
|
||||
Reference in New Issue
Block a user