Build: Introduce Project extension properties for source sets

This commit is contained in:
Vyacheslav Gerasimov
2018-06-14 17:59:24 +03:00
parent 42dc6a277f
commit 01db78d776
32 changed files with 51 additions and 54 deletions
@@ -42,7 +42,7 @@ projectTest {
":kotlin-script-runtime:dist")
workingDir = File(rootDir, "libraries/tools/kotlin-compiler-client-embeddable-test/src")
doFirst {
systemProperty("kotlin.test.script.classpath", javaPluginConvention().sourceSets.getByName("test").output.classesDirs.joinToString(File.pathSeparator))
systemProperty("kotlin.test.script.classpath", testSourceSet.output.classesDirs.joinToString(File.pathSeparator))
systemProperty("compilerJar", testRuntimeCompilerJar.singleFile.canonicalPath)
systemProperty("stdlibJar", testStdlibJar.singleFile.canonicalPath)
systemProperty("scriptRuntimeJar", testScriptRuntimeJar.singleFile.canonicalPath)
+1 -1
View File
@@ -37,7 +37,7 @@ val compilerModules: Array<String> by rootProject.extra
compilerModules.forEach { evaluationDependsOn(it) }
val compiledModulesSources = compilerModules.map {
project(it).javaPluginConvention().sourceSets.getByName("main").allSource
project(it).mainSourceSet.allSource
}
dependencies {
+1 -1
View File
@@ -37,7 +37,7 @@ val compilerModules: Array<String> by rootProject.extra
compilerModules.forEach { evaluationDependsOn(it) }
val compiledModulesSources = compilerModules.map {
project(it).javaPluginConvention().sourceSets.getByName("main").allSource
project(it).mainSourceSet.allSource
}
dependencies {
+1 -1
View File
@@ -37,7 +37,7 @@ val compilerModules: Array<String> by rootProject.extra
compilerModules.forEach { evaluationDependsOn(it) }
val compiledModulesSources = compilerModules.map {
project(it).javaPluginConvention().sourceSets.getByName("main").allSource
project(it).mainSourceSet.allSource
}
dependencies {
+1 -1
View File
@@ -10,7 +10,7 @@ runtimeJar {
dependsOn(":idea:formatter:classes")
project(":idea:formatter").let { p ->
p.pluginManager.withPlugin("java") {
from(p.javaPluginConvention().sourceSets.getByName("main").output)
from(p.mainSourceSet.output)
}
}
from(fileTree("$rootDir/idea/formatter")) { include("src/**") } // Eclipse formatter sources navigation depends on this
+1 -1
View File
@@ -32,7 +32,7 @@ runtimeJar {
dependsOn(":idea:ide-common:classes")
project(":idea:ide-common").let { p ->
p.pluginManager.withPlugin("java") {
from(p.javaPluginConvention().sourceSets.getByName("main").output)
from(p.mainSourceSet.output)
}
}
from(fileTree("$rootDir/idea/ide-common")) { include("src/**") } // Eclipse formatter sources navigation depends on this