JPS build: workarounds for idea importing

This commit is contained in:
Sergey Rostov
2018-10-22 10:39:38 +03:00
parent ea0cf659b0
commit 423653d225
6 changed files with 19 additions and 2 deletions
+5
View File
@@ -74,6 +74,11 @@ dependencies {
antLauncherJar(commonDep("org.apache.ant", "ant"))
antLauncherJar(files(toolsJar()))
// For JPS build
if (System.getProperty("idea.active") != null) {
testRuntimeOnly(files("${rootProject.projectDir}/dist/kotlinc/lib/kotlin-reflect.jar"))
}
}
sourceSets {
+5 -1
View File
@@ -56,6 +56,7 @@ dependencies {
compileOnly(intellijPluginDep("properties"))
compileOnly(intellijPluginDep("java-i18n"))
testCompileOnly(project(":kotlin-reflect-api")) // TODO: fix import (workaround for jps build)
testCompile(project(":kotlin-test:kotlin-test-junit"))
testCompile(projectTests(":compiler:tests-common"))
testCompile(projectTests(":idea:idea-test-framework")) { isTransitive = false }
@@ -77,6 +78,7 @@ dependencies {
testCompile(project(":kotlin-sam-with-receiver-compiler-plugin")) { isTransitive = false }
testRuntime(project(":plugins:android-extensions-compiler"))
testRuntimeOnly(project(":kotlin-android-extensions-runtime")) // TODO: fix import (workaround for jps build)
testRuntime(project(":plugins:android-extensions-ide")) { isTransitive = false }
testRuntime(project(":allopen-ide-plugin")) { isTransitive = false }
testRuntime(project(":kotlin-allopen-compiler-plugin"))
@@ -118,8 +120,9 @@ dependencies {
testRuntime(intellijPluginDep("android"))
testRuntime(intellijPluginDep("smali"))
testRuntime(intellijPluginDep("testng"))
}
if (System.getProperty("idea.active") != null) testRuntimeOnly(files("${rootProject.projectDir}/dist/kotlinc/lib/kotlin-reflect.jar"))
}
sourceSets {
"main" {
projectDefault()
@@ -144,6 +147,7 @@ sourceSets {
}
val performanceTestCompile by configurations.creating {
extendsFrom(configurations["testCompile"])
}
@@ -20,6 +20,9 @@ dependencies {
compilerClasspath(project(":kotlin-reflect"))
compilerClasspath(project(":kotlin-stdlib"))
compilerClasspath(project(":kotlin-script-runtime"))
compileOnly(project(":compiler:cli-common")) // TODO: fix import (workaround for jps build)
testCompile(project(":core:util.runtime")) // TODO: fix import (workaround for jps build)
testCompile(project(":compiler:daemon-common")) // TODO: fix import (workaround for jps build)
}
projectTest {
@@ -13,6 +13,9 @@ dependencies {
testCompile(project(":kotlin-test:kotlin-test-junit"))
testCompile(commonDep("junit:junit"))
testRuntime(project(":kotlin-reflect"))
compileOnly(project(":compiler:cli-common")) // TODO: fix import (workaround for jps build)
testCompile(project(":core:util.runtime")) // TODO: fix import (workaround for jps build)
testCompile(project(":compiler:daemon-common")) // TODO: fix import (workaround for jps build)
}
projectTest()
@@ -19,7 +19,7 @@ dependencies {
runtime(project(":kotlin-reflect"))
testCompile(projectTests(":compiler:tests-common"))
testCompile(commonDep("junit"))
testRuntime(project(":kotlin-reflect"))
testCompile(project(":compiler:daemon-common")) // TODO: fix import (workaround for jps build)
}
sourceSets {
@@ -13,6 +13,8 @@ dependencies {
testCompile(projectTests(it))
jpsTest(project(it, configuration = "jpsTest"))
}
testRuntimeOnly(files("${rootProject.projectDir}/dist/kotlinc/lib/kotlin-reflect.jar"))
}
sourceSets {