4/5 Replace source dependency on kotlin-reflect with binary dependency
Review: https://jetbrains.team/p/kt/reviews/6753 Meaningful semantic change was splitted into 5 commits to simplify the change review. Sinle commit would be too big. Why replace source to binary: to get rid of kotlin-reflect in Kotlin plugin artifact KTIJ-22276
This commit is contained in:
+4
-1
@@ -276,13 +276,16 @@ extra["kotlinJpsPluginEmbeddedDependencies"] = listOf(
|
||||
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["kotlinJpsPluginMavenDependenciesNonTransitiveLibs"] = listOf(
|
||||
commonDependency("org.jetbrains.kotlin:kotlin-reflect")
|
||||
)
|
||||
|
||||
extra["compilerArtifactsForIde"] = listOfNotNull(
|
||||
":prepare:ide-plugin-dependencies:android-extensions-compiler-plugin-for-ide",
|
||||
":prepare:ide-plugin-dependencies:allopen-compiler-plugin-for-ide",
|
||||
|
||||
@@ -264,7 +264,7 @@ fun Project.publishProjectJars(projects: List<String>, libraryDependencies: List
|
||||
}
|
||||
|
||||
for (libraryDependency in libraryDependencies) {
|
||||
fatJarContents(libraryDependency)
|
||||
fatJarContents(libraryDependency) { isTransitive = false }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,14 +6,21 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
implementation(kotlinStdlib())
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
rootProject.extra["kotlinJpsPluginEmbeddedDependencies"]
|
||||
.let { it as List<String> }
|
||||
.forEach { implementation(project(it)) }
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
rootProject.extra["kotlinJpsPluginMavenDependencies"]
|
||||
.let { it as List<String> }
|
||||
.forEach { implementation(project(it)) }
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
rootProject.extra["kotlinJpsPluginMavenDependenciesNonTransitiveLibs"]
|
||||
.let { it as List<String> }
|
||||
.forEach { implementation(it) { isTransitive = false } }
|
||||
|
||||
compileOnly(intellijUtilRt())
|
||||
compileOnly(intellijPlatformUtil())
|
||||
compileOnly(jpsModel())
|
||||
|
||||
@@ -18,14 +18,21 @@ dependencies {
|
||||
compileOnly(project(":jps:jps-platform-api-signatures"))
|
||||
testImplementation(projectTests(":generators:test-generator"))
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
rootProject.extra["kotlinJpsPluginEmbeddedDependencies"]
|
||||
.let { it as List<String> }
|
||||
.forEach { implementation(project(it)) }
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
rootProject.extra["kotlinJpsPluginMavenDependencies"]
|
||||
.let { it as List<String> }
|
||||
.forEach { implementation(project(it)) }
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
rootProject.extra["kotlinJpsPluginMavenDependenciesNonTransitiveLibs"]
|
||||
.let { it as List<String> }
|
||||
.forEach { implementation(it) { isTransitive = false } }
|
||||
|
||||
implementation(project(":jps:jps-common"))
|
||||
compileOnly(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
|
||||
compileOnly(jpsModel())
|
||||
|
||||
@@ -4,8 +4,12 @@ idePluginDependency {
|
||||
val embeddedDependencies = rootProject.extra["kotlinJpsPluginEmbeddedDependencies"] as List<String>
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val mavenDependencies = rootProject.extra["kotlinJpsPluginMavenDependencies"] as List<String>
|
||||
val mavenDependenciesLibs = rootProject.extra["kotlinJpsPluginMavenDependenciesNonTransitiveLibs"] as List<String>
|
||||
|
||||
val otherProjects = listOf(":jps:jps-plugin", ":jps:jps-common")
|
||||
|
||||
publishProjectJars(embeddedDependencies + mavenDependencies + otherProjects, libraryDependencies = listOf(protobufFull()))
|
||||
publishProjectJars(
|
||||
embeddedDependencies + mavenDependencies + otherProjects,
|
||||
libraryDependencies = mavenDependenciesLibs + listOf(protobufFull())
|
||||
)
|
||||
}
|
||||
|
||||
@@ -3,9 +3,15 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
rootProject.extra["kotlinJpsPluginMavenDependencies"]
|
||||
.let { it as List<String> }
|
||||
.forEach { implementation(project(it)) }
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
rootProject.extra["kotlinJpsPluginMavenDependenciesNonTransitiveLibs"]
|
||||
.let { it as List<String> }
|
||||
.forEach { implementation(it) { isTransitive = false } }
|
||||
}
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
|
||||
Reference in New Issue
Block a user