Add all necessary compile dependencies to 'pill:generate-all-tests'
Before this change running the pill:generate-all-tests:testClasses task (which is run by Intellij on "Build" invocation) led to compile error
This commit is contained in:
@@ -192,3 +192,5 @@ codegenTest(target = 10, jvm = 10) {
|
||||
}
|
||||
|
||||
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateCompilerTestsKt")
|
||||
|
||||
testsJar()
|
||||
|
||||
@@ -29,3 +29,5 @@ projectTest {
|
||||
}
|
||||
|
||||
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateJava8TestsKt")
|
||||
|
||||
testsJar()
|
||||
|
||||
@@ -38,3 +38,5 @@ val generateProtoBuf by generator("org.jetbrains.kotlin.generators.protobuf.Gene
|
||||
val generateProtoBufCompare by generator("org.jetbrains.kotlin.generators.protobuf.GenerateProtoBufCompare")
|
||||
|
||||
val generateGradleOptions by generator("org.jetbrains.kotlin.generators.arguments.GenerateGradleOptionsKt")
|
||||
|
||||
testsJar()
|
||||
|
||||
@@ -2,11 +2,15 @@
|
||||
apply { plugin("kotlin") }
|
||||
apply { plugin("jps-compatible") }
|
||||
|
||||
val depenencyProjects = arrayOf(
|
||||
":generators", ":compiler", ":js:js.tests", ":compiler:tests-java8"
|
||||
)
|
||||
|
||||
dependencies {
|
||||
jpsTest(project(":generators", configuration = "jpsTest"))
|
||||
jpsTest(project(":compiler", configuration = "jpsTest"))
|
||||
jpsTest(project(":js:js.tests", configuration = "jpsTest"))
|
||||
jpsTest(project(":compiler:tests-java8", configuration = "jpsTest"))
|
||||
depenencyProjects.forEach {
|
||||
testCompile(projectTests(it))
|
||||
jpsTest(project(it, configuration = "jpsTest"))
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
Reference in New Issue
Block a user