提交 a61facf3 编写于 作者: I Ilya Chernikov

Clean most of the shared source roots conflicts

上级 e26b421e
......@@ -104,6 +104,7 @@ extra["ideaCoreSdkJars"] = arrayOf("annotations", "asm-all", "guava", "intellij-
extra["compilerModules"] = arrayOf(":compiler:util",
":compiler:container",
":compiler:conditional-preprocessor",
":compiler:resolution",
":compiler:serialization",
":compiler:frontend",
......@@ -111,6 +112,7 @@ extra["compilerModules"] = arrayOf(":compiler:util",
":compiler:frontend.script",
":compiler:cli-common",
":compiler:daemon-common",
":compiler:daemon",
":compiler:ir.tree",
":compiler:ir.psi2ir",
":compiler:backend-common",
......
import java.io.File
import org.gradle.api.tasks.bundling.Jar
apply { plugin("kotlin") }
......@@ -9,14 +10,6 @@ val compilerModules: Array<String> by rootProject.extra
val otherCompilerModules = compilerModules.filter { it != path }
dependencies {
compileOnly(project(":compiler:cli"))
compileOnly(project(":compiler:daemon-common"))
compileOnly(project(":compiler:incremental-compilation-impl"))
compileOnly(project(":kotlin-build-common"))
compileOnly(ideaSdkCoreDeps(*(rootProject.extra["ideaCoreSdkJars"] as Array<String>)))
compileOnly(commonDep("org.fusesource.jansi", "jansi"))
compileOnly(commonDep("org.jline", "jline"))
testCompile(commonDep("junit:junit"))
testCompile(project(":kotlin-test:kotlin-test-jvm"))
testCompile(project(":kotlin-test:kotlin-test-junit"))
......@@ -40,23 +33,43 @@ dependencies {
}
sourceSets {
"main" {
java.srcDirs("daemon/src",
"conditional-preprocessor/src")
resources.srcDir("../idea/src").apply {
include("META-INF/extensions/common.xml",
"META-INF/extensions/kotlin2jvm.xml",
"META-INF/extensions/kotlin2js.xml")
}
"main" {}
"test" {
projectDefault()
java.srcDir("tests-ir-jvm/tests")
}
}
val jar: Jar by tasks
jar.apply {
from(the<JavaPluginConvention>().sourceSets.getByName("main").output)
from("../idea/src").apply {
include("META-INF/extensions/common.xml",
"META-INF/extensions/kotlin2jvm.xml",
"META-INF/extensions/kotlin2js.xml")
}
"test" { projectDefault() }
}
testsJar {}
// TODO: it seems incomlete, find and add missing dependencies
val testDistProjects = listOf(
":prepare:mock-runtime-for-test",
":kotlin-compiler",
":kotlin-runtime",
":kotlin-script-runtime",
":kotlin-stdlib",
":kotlin-stdlib-jre7",
":kotlin-stdlib-jre8",
":kotlin-stdlib-js",
":kotlin-reflect",
":kotlin-test:kotlin-test-jvm",
":kotlin-test:kotlin-test-junit",
":kotlin-test:kotlin-test-js",
":kotlin-daemon-client")
projectTest {
dependsOnTaskIfExistsRec("dist", project = rootProject)
dependsOn(":prepare:mock-runtime-for-test:dist")
dependsOn(*testDistProjects.map { "$it:dist" }.toTypedArray())
workingDir = rootDir
systemProperty("kotlin.test.script.classpath", the<JavaPluginConvention>().sourceSets.getByName("test").output.classesDirs.joinToString(File.pathSeparator))
}
......
apply { plugin("kotlin") }
jvmTarget = "1.6"
dependencies {
val compile by configurations
compile(project(":compiler:cli"))
compile(project(":compiler:daemon-common"))
compile(project(":compiler:incremental-compilation-impl"))
compile(project(":kotlin-build-common"))
compile(ideaSdkCoreDeps(*(rootProject.extra["ideaCoreSdkJars"] as Array<String>)))
compile(commonDep("org.fusesource.jansi", "jansi"))
compile(commonDep("org.jline", "jline"))
}
sourceSets {
"main" { projectDefault() }
"test" {}
}
apply { plugin("kotlin") }
jvmTarget = "1.6"
dependencies {
val compile by configurations
compile(project(":compiler:cli"))
compile(project(":compiler:daemon-common"))
compile(project(":compiler:incremental-compilation-impl"))
compile(project(":kotlin-build-common"))
compile(ideaSdkCoreDeps(*(rootProject.extra["ideaCoreSdkJars"] as Array<String>)))
compile(commonDep("org.fusesource.jansi", "jansi"))
compile(commonDep("org.jline", "jline"))
}
sourceSets {
"main" { projectDefault() }
"test" {}
}
......@@ -94,11 +94,13 @@ sourceSets {
"idea-completion/src",
"idea-live-templates/src",
"idea-repl/src")
resources.srcDir("idea-maven/resources")
}
"test" {
java.srcDirs("tests",
"idea-maven/test",
"idea-completion/tests")
projectDefault()
java.srcDirs("idea-maven/test",
"idea-completion/tests",
"idea-live-templates/tests")
}
}
......
......@@ -31,7 +31,8 @@ dependencies {
sourceSets {
"main" { projectDefault() }
"test" {
java.srcDirs("jps-tests/test")
java.srcDirs("jps-tests/test",
"kannotator-jps-plugin-test/test")
}
}
......
......@@ -35,7 +35,7 @@ dependencies {
compile project(':kotlin-build-common')
compile project(':compiler:compiler-runner')
compile project(":compiler:incremental-compilation-impl")
compile project(":compiler")
compile project(":compiler:daemon")
compile project(':kotlin-annotation-processing')
compileOnly 'com.android.tools.build:gradle:2.0.0'
......
......@@ -15,10 +15,12 @@ include ":kotlin-build-common",
":compiler",
":compiler:util",
":compiler:daemon-common",
":compiler:daemon",
":kotlin-daemon-client",
":kotlin-preloader",
":kotlin-runner",
":compiler:container",
":compiler:conditional-preprocessor",
":compiler:resolution",
":compiler:serialization",
":compiler:frontend",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册