Attach JPS plugin modules to the project model

This commit is contained in:
Nikita Bobko
2021-12-22 16:12:28 +01:00
parent 208e271b4e
commit 047272e56f
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ extra["compilerModulesForJps"] = listOf(
":compiler:frontend.java", ":compiler:frontend.java",
":core:metadata", ":core:metadata",
":core:metadata.jvm", ":core:metadata.jvm",
":idea:idea-jps-common", ":jps:jps-common",
":kotlin-preloader", ":kotlin-preloader",
":compiler:util", ":compiler:util",
":compiler:config", ":compiler:config",
+1 -4
View File
@@ -17,10 +17,7 @@ dependencies {
compile(project(":compiler:frontend.java")) compile(project(":compiler:frontend.java"))
compile(project(":js:js.frontend")) compile(project(":js:js.frontend"))
compile(projectRuntimeJar(":kotlin-preloader")) compile(projectRuntimeJar(":kotlin-preloader"))
compile(project(":idea:idea-jps-common")) compile(project(":jps:jps-common"))
Platform[193].orLower {
compileOnly(intellijDep()) { includeJars("openapi", rootProject = rootProject) }
}
compileOnly(intellijDep()) { compileOnly(intellijDep()) {
includeJars("jdom", "trove4j", "jps-model", "platform-api", "util", "asm-all", rootProject = rootProject) includeJars("jdom", "trove4j", "jps-model", "platform-api", "util", "asm-all", rootProject = rootProject)
} }
@@ -1,3 +1,3 @@
idePluginDependency { idePluginDependency {
publishProjectJars(listOf(":idea:idea-jps-common")) publishProjectJars(listOf(":jps:jps-common"))
} }
@@ -2,7 +2,7 @@ idePluginDependency {
@Suppress("UNCHECKED_CAST") @Suppress("UNCHECKED_CAST")
val compilerComponents = rootProject.extra["compilerModulesForJps"] as List<String> val compilerComponents = rootProject.extra["compilerModulesForJps"] as List<String>
val otherProjects = listOf(":kotlin-daemon-client", ":jps-plugin", ":idea:idea-jps-common", ":kotlin-reflect") val otherProjects = listOf(":kotlin-daemon-client", ":jps:jps-plugin", ":jps:jps-common", ":kotlin-reflect")
publishProjectJars(compilerComponents + otherProjects, libraryDependencies = listOf(protobufFull())) publishProjectJars(compilerComponents + otherProjects, libraryDependencies = listOf(protobufFull()))
} }
+3
View File
@@ -486,6 +486,9 @@ if (attachedIntellijVersion == "212") { // Latest available platform in scope of
intellij "jvm-run-configurations/kotlin.jvm-run-configurations.iml" intellij "jvm-run-configurations/kotlin.jvm-run-configurations.iml"
} }
include ":jps:jps-common",
":jps:jps-plugin"
include ":generators:analysis-api-generator", include ":generators:analysis-api-generator",
":analysis", ":analysis",
":analysis:low-level-api-fir", ":analysis:low-level-api-fir",