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 +
|
||||
firAllCompilerModules
|
||||
|
||||
|
||||
extra["compilerModulesForJps"] = listOf(
|
||||
":kotlin-daemon-client",
|
||||
":kotlin-reflect",
|
||||
":kotlin-build-common",
|
||||
":kotlin-util-io",
|
||||
":kotlin-util-klib",
|
||||
":kotlin-util-klib-metadata",
|
||||
// They are embedded just because we don't publish those dependencies as separate Maven artifacts (yet)
|
||||
extra["kotlinJpsPluginEmbeddedDependencies"] = listOf(
|
||||
":compiler:cli-common",
|
||||
":kotlin-compiler-runner-unshaded",
|
||||
":daemon-common",
|
||||
@@ -259,7 +253,6 @@ extra["compilerModulesForJps"] = listOf(
|
||||
":core:descriptors",
|
||||
":core:descriptors.jvm",
|
||||
":compiler:backend.common.jvm",
|
||||
":native:kotlin-native-utils",
|
||||
":js:js.serializer",
|
||||
":core:deserialization",
|
||||
":core:deserialization.common",
|
||||
@@ -277,6 +270,16 @@ extra["compilerModulesForJps"] = listOf(
|
||||
":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(
|
||||
":prepare:ide-plugin-dependencies:android-extensions-compiler-plugin-for-ide",
|
||||
":prepare:ide-plugin-dependencies:allopen-compiler-plugin-for-ide",
|
||||
|
||||
@@ -6,7 +6,11 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
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> }
|
||||
.forEach { implementation(project(it)) }
|
||||
|
||||
|
||||
@@ -18,7 +18,11 @@ dependencies {
|
||||
compileOnly(project(":jps:jps-platform-api-signatures"))
|
||||
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> }
|
||||
.forEach { implementation(project(it)) }
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
idePluginDependency {
|
||||
@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")
|
||||
|
||||
publishProjectJars(compilerComponents + otherProjects, libraryDependencies = listOf(protobufFull()))
|
||||
publishProjectJars(embeddedDependencies + mavenDependencies + otherProjects, libraryDependencies = listOf(protobufFull()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user