@@ -9,34 +9,55 @@ jvmTarget = "1.6"
99val compilerModules: Array <String > by rootProject.extra
1010val otherCompilerModules = compilerModules.filter { it != path }
1111
12+ val depDistProjects = listOf (
13+ " :kotlin-script-runtime" ,
14+ " :kotlin-stdlib" ,
15+ " :kotlin-reflect" ,
16+ " :kotlin-test:kotlin-test-jvm" )
17+
18+ // TODO: it seems incomplete, find and add missing dependencies
19+ val testDistProjects = listOf (
20+ " " , // for root project
21+ " :prepare:mock-runtime-for-test" ,
22+ " :kotlin-compiler" ,
23+ " :kotlin-runtime" ,
24+ " :kotlin-script-runtime" ,
25+ " :kotlin-stdlib" ,
26+ " :kotlin-stdlib-jre7" ,
27+ " :kotlin-stdlib-jre8" ,
28+ " :kotlin-stdlib-js" ,
29+ " :kotlin-reflect" ,
30+ " :kotlin-test:kotlin-test-jvm" ,
31+ " :kotlin-test:kotlin-test-junit" ,
32+ " :kotlin-test:kotlin-test-js" ,
33+ " :kotlin-daemon-client" ,
34+ " :android-extensions-compiler" ,
35+ " :kotlin-ant" )
36+
1237dependencies {
38+ depDistProjects.forEach {
39+ testCompile(projectDist(it))
40+ }
1341 testCompile(commonDep(" junit:junit" ))
14- testCompile(project (" :kotlin-test:kotlin-test-jvm" ))
15- testCompile(project (" :kotlin-test:kotlin-test-junit" ))
42+ testCompileOnly(projectDist (" :kotlin-test:kotlin-test-jvm" ))
43+ testCompileOnly(projectDist (" :kotlin-test:kotlin-test-junit" ))
1644 testCompile(project(" :compiler.tests-common" ))
17- testCompileOnly(project(" :compiler:ir.ir2cfg" ))
18- testCompileOnly(project(" :compiler:ir.tree" )) // used for deepCopyWithSymbols call that is removed by proguard from the compiler TODO: make it more straightforward
19- testCompile(ideaSdkDeps(" openapi" , " idea" , " util" , " asm-all" , " commons-httpclient-3.1-patched" ))
20- // deps below are test runtime deps, but made test compile to split compilation and running to reduce mem req
21- testCompile(project(" :kotlin-stdlib" ))
22- testCompile(project(" :kotlin-script-runtime" ))
23- testCompile(project(" :kotlin-runtime" ))
24- testCompile(project(" :kotlin-reflect" ))
25- testCompile(project(" :android-extensions-compiler" ))
26- testCompile(project(" :kotlin-ant" ))
45+ testCompile(project(" :compiler:ir.ir2cfg" ))
46+ testCompile(project(" :compiler:ir.tree" )) // used for deepCopyWithSymbols call that is removed by proguard from the compiler TODO: make it more straightforward
2747 otherCompilerModules.forEach {
28- testCompile (project(it))
48+ testCompileOnly (project(it))
2949 }
50+ testCompile(ideaSdkDeps(" openapi" , " idea" , " util" , " asm-all" , " commons-httpclient-3.1-patched" ))
3051 testRuntime(ideaSdkCoreDeps(" *.jar" ))
3152 testRuntime(ideaSdkDeps(" *.jar" ))
32- // testRuntime(project(":kotlin-compiler", configuration = "default"))
3353}
3454
3555sourceSets {
3656 " main" {}
3757 " test" {
3858 projectDefault()
39- java.srcDir(" tests-ir-jvm/tests" )
59+ // not yet ready
60+ // java.srcDir("tests-ir-jvm/tests")
4061 }
4162}
4263
@@ -52,22 +73,6 @@ jar.apply {
5273
5374testsJar {}
5475
55- // TODO: it seems incomlete, find and add missing dependencies
56- val testDistProjects = listOf (
57- " :prepare:mock-runtime-for-test" ,
58- " :kotlin-compiler" ,
59- " :kotlin-runtime" ,
60- " :kotlin-script-runtime" ,
61- " :kotlin-stdlib" ,
62- " :kotlin-stdlib-jre7" ,
63- " :kotlin-stdlib-jre8" ,
64- " :kotlin-stdlib-js" ,
65- " :kotlin-reflect" ,
66- " :kotlin-test:kotlin-test-jvm" ,
67- " :kotlin-test:kotlin-test-junit" ,
68- " :kotlin-test:kotlin-test-js" ,
69- " :kotlin-daemon-client" )
70-
7176projectTest {
7277 dependsOn(* testDistProjects.map { " $it :dist" }.toTypedArray())
7378 workingDir = rootDir
0 commit comments