Move compiler/tests-common/{src -> tests}, adjust dependencies

This commit is contained in:
Alexander Udalov
2017-10-17 14:36:23 +02:00
parent c2276e2ccb
commit 33549362cb
115 changed files with 76 additions and 57 deletions
+6 -3
View File
@@ -11,11 +11,14 @@ dependencies {
compileOnly(project(":js:js.serializer")) compileOnly(project(":js:js.serializer"))
compileOnly(project(":js:js.frontend")) compileOnly(project(":js:js.frontend"))
compileOnly(ideaSdkDeps("util")) compileOnly(ideaSdkDeps("util"))
testCompileOnly(project(":compiler:cli-common"))
testCompile(projectTests(":compiler:tests-common"))
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
testCompile(project(":compiler:tests-common"))
testCompile(protobufFull()) testCompile(protobufFull())
testRuntime(projectDist(":kotlin-stdlib")) testCompile(projectDist(":kotlin-stdlib"))
testRuntime(projectDist(":kotlin-reflect")) testCompile(projectDist(":kotlin-reflect"))
testCompileOnly(ideaSdkDeps("openapi"))
testRuntime(projectDist(":kotlin-compiler"))
} }
sourceSets { sourceSets {
+4 -3
View File
@@ -6,18 +6,19 @@ jvmTarget = "1.6"
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":compiler:cli")) compile(project(":compiler:cli"))
compile(project(":compiler:tests-common"))
compile(project(":compiler:frontend")) compile(project(":compiler:frontend"))
compile(project(":compiler:backend")) compile(project(":compiler:backend"))
compile(projectTests(":compiler:tests-common"))
compile(commonDep("junit:junit"))
compile(ideaSdkDeps("openapi"))
testCompile(project(":compiler:incremental-compilation-impl")) testCompile(project(":compiler:incremental-compilation-impl"))
testCompile(project(":core")) testCompile(project(":core"))
testCompile(project(":compiler:frontend.java")) testCompile(project(":compiler:frontend.java"))
testCompile(projectTests(":jps-plugin")) testCompile(projectTests(":jps-plugin"))
testCompile(commonDep("junit:junit"))
testCompile(ideaSdkDeps("jps-model.jar", subdir = "jps")) testCompile(ideaSdkDeps("jps-model.jar", subdir = "jps"))
testCompile(ideaSdkDeps("groovy-all")) testCompile(ideaSdkDeps("groovy-all"))
testCompile(ideaSdkDeps("openapi", "idea")) testCompile(ideaSdkDeps("idea", "idea_rt"))
testCompile(ideaSdkDeps("jps-build-test", subdir = "jps/test")) testCompile(ideaSdkDeps("jps-build-test", subdir = "jps/test"))
testCompile(ideaSdkDeps("jps-builders")) testCompile(ideaSdkDeps("jps-builders"))
} }
+6 -2
View File
@@ -29,7 +29,6 @@ val testDistProjects = listOf(
":kotlin-test:kotlin-test-jvm", ":kotlin-test:kotlin-test-jvm",
":kotlin-test:kotlin-test-junit", ":kotlin-test:kotlin-test-junit",
":kotlin-test:kotlin-test-js", ":kotlin-test:kotlin-test-js",
":kotlin-daemon-client",
":kotlin-preloader", ":kotlin-preloader",
":plugins:android-extensions-compiler", ":plugins:android-extensions-compiler",
":kotlin-ant", ":kotlin-ant",
@@ -43,13 +42,18 @@ dependencies {
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
testCompileOnly(projectDist(":kotlin-test:kotlin-test-jvm")) testCompileOnly(projectDist(":kotlin-test:kotlin-test-jvm"))
testCompileOnly(projectDist(":kotlin-test:kotlin-test-junit")) testCompileOnly(projectDist(":kotlin-test:kotlin-test-junit"))
testCompile(project(":compiler:tests-common")) testCompile(projectTests(":compiler:tests-common"))
testCompile(project(":compiler:tests-common-jvm6")) testCompile(project(":compiler:tests-common-jvm6"))
testCompile(project(":compiler:ir.ir2cfg")) testCompile(project(":compiler:ir.ir2cfg"))
testCompile(project(":compiler:ir.tree")) // used for deepCopyWithSymbols call that is removed by proguard from the compiler TODO: make it more straightforward testCompile(project(":compiler:ir.tree")) // used for deepCopyWithSymbols call that is removed by proguard from the compiler TODO: make it more straightforward
testCompileOnly(project(":kotlin-daemon-client"))
otherCompilerModules.forEach { otherCompilerModules.forEach {
testCompileOnly(project(it)) testCompileOnly(project(it))
} }
testRuntime(projectDist(":kotlin-compiler"))
testRuntime(projectDist(":kotlin-daemon-client"))
testRuntime(preloadedDeps("dx", subdir = "android-5.0/lib"))
testCompile(ideaSdkDeps("openapi", "idea", "util", "asm-all", "commons-httpclient-3.1-patched")) testCompile(ideaSdkDeps("openapi", "idea", "util", "asm-all", "commons-httpclient-3.1-patched"))
testRuntime(ideaSdkCoreDeps("*.jar")) testRuntime(ideaSdkCoreDeps("*.jar"))
testRuntime(ideaSdkDeps("*.jar")) testRuntime(ideaSdkDeps("*.jar"))
@@ -11,10 +11,10 @@ dependencies {
compile(project(":compiler:cli")) compile(project(":compiler:cli"))
compile(project(":kotlin-build-common")) compile(project(":kotlin-build-common"))
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
testCompile(project(":compiler:tests-common"))
testCompile(projectDist(":kotlin-test:kotlin-test-junit")) testCompile(projectDist(":kotlin-test:kotlin-test-junit"))
testCompile(projectDist(":kotlin-stdlib")) testCompile(projectDist(":kotlin-stdlib"))
testCompile(projectTests(":kotlin-build-common")) testCompile(projectTests(":kotlin-build-common"))
testCompile(projectTests(":compiler:tests-common"))
} }
sourceSets { sourceSets {
+27 -26
View File
@@ -2,33 +2,34 @@
apply { plugin("kotlin") } apply { plugin("kotlin") }
dependencies { dependencies {
compile(project(":core")) testCompile(project(":core"))
compile(project(":core::util.runtime")) testCompile(project(":core::util.runtime"))
compile(project(":compiler:util")) testCompile(project(":compiler:util"))
compile(project(":compiler:backend")) testCompile(project(":compiler:backend"))
compile(project(":compiler:frontend")) testCompile(project(":compiler:frontend"))
compile(project(":compiler:frontend.java")) testCompile(project(":compiler:frontend.java"))
compile(project(":compiler:util")) testCompile(project(":compiler:util"))
compile(project(":compiler:cli-common")) testCompile(project(":compiler:cli-common"))
compile(project(":compiler:cli")) testCompile(project(":compiler:cli"))
compile(project(":compiler:light-classes")) testCompile(project(":compiler:light-classes"))
compile(project(":compiler:serialization")) testCompile(project(":compiler:serialization"))
compile(project(":kotlin-preloader")) testCompile(project(":kotlin-preloader"))
compile(project(":compiler:daemon-common")) testCompile(project(":compiler:daemon-common"))
compile(project(":kotlin-daemon-client")) testCompile(project(":js:js.serializer"))
compile(project(":js:js.serializer")) testCompile(project(":js:js.frontend"))
compile(project(":js:js.frontend")) testCompile(project(":js:js.translator"))
compile(project(":js:js.translator")) testCompileOnly(project(":plugins:android-extensions-compiler"))
compileOnly(project(":plugins:android-extensions-compiler")) testCompile(project(":kotlin-test:kotlin-test-jvm"))
compile(project(":kotlin-test:kotlin-test-jvm")) testCompile(project(":compiler:tests-common-jvm6"))
compile(project(":compiler:tests-common-jvm6")) testCompile(commonDep("junit:junit"))
compile(commonDep("junit:junit")) testCompile(ideaSdkCoreDeps("intellij-core"))
compile(ideaSdkCoreDeps("intellij-core")) testCompile(ideaSdkDeps("openapi", "idea", "idea_rt"))
compile(ideaSdkDeps("openapi", "idea", "idea_rt")) testCompile(preloadedDeps("dx", subdir = "android-5.0/lib"))
compile(preloadedDeps("dx", subdir = "android-5.0/lib"))
} }
sourceSets { sourceSets {
"main" { projectDefault() } "main" { }
"test" { } "test" { projectDefault() }
} }
testsJar {}
+2 -1
View File
@@ -6,7 +6,6 @@ dependencies {
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
testCompile(projectDist(":kotlin-test:kotlin-test-jvm")) testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
testCompile(projectDist(":kotlin-test:kotlin-test-junit")) testCompile(projectDist(":kotlin-test:kotlin-test-junit"))
testCompile(project(":compiler:tests-common"))
testCompile(project(":core")) testCompile(project(":core"))
testCompile(project(":compiler:util")) testCompile(project(":compiler:util"))
testCompile(project(":compiler:backend")) testCompile(project(":compiler:backend"))
@@ -20,7 +19,9 @@ dependencies {
testCompile(projectDist(":kotlin-script-runtime")) testCompile(projectDist(":kotlin-script-runtime"))
testCompile(projectDist(":kotlin-reflect")) testCompile(projectDist(":kotlin-reflect"))
testCompile(projectTests(":compiler")) testCompile(projectTests(":compiler"))
testCompile(projectTests(":compiler:tests-common"))
testRuntime(projectRuntimeJar(":kotlin-preloader")) testRuntime(projectRuntimeJar(":kotlin-preloader"))
testRuntime(preloadedDeps("dx", subdir = "android-5.0/lib"))
testRuntime(ideaSdkCoreDeps("*.jar")) testRuntime(ideaSdkCoreDeps("*.jar"))
testRuntime(ideaSdkDeps("*.jar")) testRuntime(ideaSdkDeps("*.jar"))
} }

Some files were not shown because too many files have changed in this diff Show More