Refactoring: Split compilerModulesForJps into "embedded" and "maven"
This small refactoring is needed for the next commit. This commit doesn't change any semantic.
This commit is contained in:
+12
-9
@@ -242,14 +242,8 @@ extra["compilerModules"] =
|
|||||||
commonCompilerModules +
|
commonCompilerModules +
|
||||||
firAllCompilerModules
|
firAllCompilerModules
|
||||||
|
|
||||||
|
// They are embedded just because we don't publish those dependencies as separate Maven artifacts (yet)
|
||||||
extra["compilerModulesForJps"] = listOf(
|
extra["kotlinJpsPluginEmbeddedDependencies"] = listOf(
|
||||||
":kotlin-daemon-client",
|
|
||||||
":kotlin-reflect",
|
|
||||||
":kotlin-build-common",
|
|
||||||
":kotlin-util-io",
|
|
||||||
":kotlin-util-klib",
|
|
||||||
":kotlin-util-klib-metadata",
|
|
||||||
":compiler:cli-common",
|
":compiler:cli-common",
|
||||||
":kotlin-compiler-runner-unshaded",
|
":kotlin-compiler-runner-unshaded",
|
||||||
":daemon-common",
|
":daemon-common",
|
||||||
@@ -259,7 +253,6 @@ extra["compilerModulesForJps"] = listOf(
|
|||||||
":core:descriptors",
|
":core:descriptors",
|
||||||
":core:descriptors.jvm",
|
":core:descriptors.jvm",
|
||||||
":compiler:backend.common.jvm",
|
":compiler:backend.common.jvm",
|
||||||
":native:kotlin-native-utils",
|
|
||||||
":js:js.serializer",
|
":js:js.serializer",
|
||||||
":core:deserialization",
|
":core:deserialization",
|
||||||
":core:deserialization.common",
|
":core:deserialization.common",
|
||||||
@@ -277,6 +270,16 @@ extra["compilerModulesForJps"] = listOf(
|
|||||||
":compiler:compiler.version"
|
":compiler:compiler.version"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
extra["kotlinJpsPluginMavenDependencies"] = listOf(
|
||||||
|
":kotlin-daemon-client",
|
||||||
|
":kotlin-build-common",
|
||||||
|
":kotlin-reflect",
|
||||||
|
":kotlin-util-io",
|
||||||
|
":kotlin-util-klib",
|
||||||
|
":kotlin-util-klib-metadata",
|
||||||
|
":native:kotlin-native-utils"
|
||||||
|
)
|
||||||
|
|
||||||
extra["compilerArtifactsForIde"] = listOfNotNull(
|
extra["compilerArtifactsForIde"] = listOfNotNull(
|
||||||
":prepare:ide-plugin-dependencies:android-extensions-compiler-plugin-for-ide",
|
":prepare:ide-plugin-dependencies:android-extensions-compiler-plugin-for-ide",
|
||||||
":prepare:ide-plugin-dependencies:allopen-compiler-plugin-for-ide",
|
":prepare:ide-plugin-dependencies:allopen-compiler-plugin-for-ide",
|
||||||
|
|||||||
@@ -6,7 +6,11 @@ plugins {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlinStdlib())
|
implementation(kotlinStdlib())
|
||||||
rootProject.extra["compilerModulesForJps"]
|
rootProject.extra["kotlinJpsPluginEmbeddedDependencies"]
|
||||||
|
.let { it as List<String> }
|
||||||
|
.forEach { implementation(project(it)) }
|
||||||
|
|
||||||
|
rootProject.extra["kotlinJpsPluginMavenDependencies"]
|
||||||
.let { it as List<String> }
|
.let { it as List<String> }
|
||||||
.forEach { implementation(project(it)) }
|
.forEach { implementation(project(it)) }
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,11 @@ dependencies {
|
|||||||
compileOnly(project(":jps:jps-platform-api-signatures"))
|
compileOnly(project(":jps:jps-platform-api-signatures"))
|
||||||
testImplementation(projectTests(":generators:test-generator"))
|
testImplementation(projectTests(":generators:test-generator"))
|
||||||
|
|
||||||
rootProject.extra["compilerModulesForJps"]
|
rootProject.extra["kotlinJpsPluginEmbeddedDependencies"]
|
||||||
|
.let { it as List<String> }
|
||||||
|
.forEach { implementation(project(it)) }
|
||||||
|
|
||||||
|
rootProject.extra["kotlinJpsPluginMavenDependencies"]
|
||||||
.let { it as List<String> }
|
.let { it as List<String> }
|
||||||
.forEach { implementation(project(it)) }
|
.forEach { implementation(project(it)) }
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
idePluginDependency {
|
idePluginDependency {
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
val compilerComponents = rootProject.extra["compilerModulesForJps"] as List<String>
|
val embeddedDependencies = rootProject.extra["kotlinJpsPluginEmbeddedDependencies"] as List<String>
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
val mavenDependencies = rootProject.extra["kotlinJpsPluginMavenDependencies"] as List<String>
|
||||||
|
|
||||||
val otherProjects = listOf(":jps:jps-plugin", ":jps:jps-common")
|
val otherProjects = listOf(":jps:jps-plugin", ":jps:jps-common")
|
||||||
|
|
||||||
publishProjectJars(compilerComponents + otherProjects, libraryDependencies = listOf(protobufFull()))
|
publishProjectJars(embeddedDependencies + mavenDependencies + otherProjects, libraryDependencies = listOf(protobufFull()))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user