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:
Alexey Tsvetkov
2018-03-13 18:23:07 +03:00
parent 0deec7983d
commit 3a7a34cc4e
4 changed files with 14 additions and 4 deletions
+2
View File
@@ -192,3 +192,5 @@ codegenTest(target = 10, jvm = 10) {
}
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateCompilerTestsKt")
testsJar()
+2
View File
@@ -29,3 +29,5 @@ projectTest {
}
val generateTests by generator("org.jetbrains.kotlin.generators.tests.GenerateJava8TestsKt")
testsJar()
+2
View File
@@ -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 {