Publish artifacts needed for the kotlin-ide repository
This commit is contained in:
@@ -0,0 +1 @@
|
||||
publishProjectJars(listOf(":kotlin-allopen-compiler-plugin"))
|
||||
@@ -0,0 +1 @@
|
||||
publishTestJar(":compiler:incremental-compilation-impl")
|
||||
@@ -0,0 +1 @@
|
||||
publishProjectJars(listOf(":plugins:android-extensions-compiler"))
|
||||
@@ -0,0 +1,6 @@
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val compilerComponentProjects = project(":kotlin-jps-plugin").extra["compilerComponents"] as List<String>
|
||||
|
||||
val otherProjects = listOf(":kotlin-daemon-client")
|
||||
|
||||
publishProjectJars(compilerComponentProjects + otherProjects)
|
||||
@@ -0,0 +1 @@
|
||||
publishTestJar(":compiler:incremental-compilation-impl")
|
||||
@@ -0,0 +1 @@
|
||||
publishTestJar(":kotlin-build-common")
|
||||
@@ -0,0 +1,27 @@
|
||||
val compilerModules: Array<String> by rootProject.extra
|
||||
|
||||
val excludedCompilerModules = listOf(
|
||||
":compiler:cli-js-klib",
|
||||
":compiler:javac-wrapper",
|
||||
":compiler:backend.js",
|
||||
":compiler:backend.wasm",
|
||||
":js:js.dce",
|
||||
":compiler:ir.serialization.js",
|
||||
":compiler:incremental-compilation-impl",
|
||||
":compiler:fir:raw-fir:light-tree2fir"
|
||||
)
|
||||
|
||||
val projects = compilerModules.asList() - excludedCompilerModules + listOf(
|
||||
":kotlin-compiler-runner",
|
||||
":kotlin-preloader",
|
||||
":daemon-common",
|
||||
":daemon-common-new",
|
||||
":kotlin-daemon",
|
||||
":kotlin-daemon-client",
|
||||
":kotlin-daemon-client-new"
|
||||
)
|
||||
|
||||
publishProjectJars(
|
||||
projects = projects,
|
||||
libraryDependencies = listOf(protobufFull())
|
||||
)
|
||||
@@ -0,0 +1,18 @@
|
||||
plugins {
|
||||
java
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
val jar: Jar by tasks
|
||||
|
||||
jar.apply {
|
||||
val distKotlincTask = project(":kotlin-compiler").tasks.getByName("distKotlinc")
|
||||
|
||||
dependsOn(distKotlincTask)
|
||||
from(distKotlincTask)
|
||||
|
||||
}
|
||||
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
@@ -0,0 +1 @@
|
||||
publishProjectJars(listOf(":kotlin-gradle-statistics"))
|
||||
@@ -0,0 +1 @@
|
||||
publishProjectJars(listOf(":kotlinx-serialization-compiler-plugin"))
|
||||
@@ -0,0 +1 @@
|
||||
publishProjectJars(listOf(":kotlin-noarg-compiler-plugin"))
|
||||
@@ -0,0 +1 @@
|
||||
publishProjectJars(listOf(":kotlin-sam-with-receiver-compiler-plugin"))
|
||||
@@ -0,0 +1 @@
|
||||
publishTestJar(":compiler:tests-common")
|
||||
@@ -4,29 +4,32 @@ plugins {
|
||||
java
|
||||
}
|
||||
|
||||
val projectsToShadow = listOf(
|
||||
":core:type-system",
|
||||
":kotlin-build-common",
|
||||
":kotlin-util-io",
|
||||
":kotlin-util-klib",
|
||||
":kotlin-util-klib-metadata",
|
||||
":compiler:cli-common",
|
||||
":kotlin-compiler-runner",
|
||||
":daemon-common",
|
||||
":daemon-common-new",
|
||||
":core:descriptors",
|
||||
":core:descriptors.jvm",
|
||||
":idea:idea-jps-common",
|
||||
":jps-plugin",
|
||||
":kotlin-preloader",
|
||||
":compiler:util",
|
||||
":compiler:config",
|
||||
":compiler:config.jvm",
|
||||
":js:js.config",
|
||||
":core:util.runtime",
|
||||
":compiler:compiler.version"
|
||||
val compilerComponents by extra(
|
||||
listOf(
|
||||
":core:type-system",
|
||||
":kotlin-build-common",
|
||||
":kotlin-util-io",
|
||||
":kotlin-util-klib",
|
||||
":kotlin-util-klib-metadata",
|
||||
":compiler:cli-common",
|
||||
":kotlin-compiler-runner",
|
||||
":daemon-common",
|
||||
":daemon-common-new",
|
||||
":core:descriptors",
|
||||
":core:descriptors.jvm",
|
||||
":idea:idea-jps-common",
|
||||
":kotlin-preloader",
|
||||
":compiler:util",
|
||||
":compiler:config",
|
||||
":compiler:config.jvm",
|
||||
":js:js.config",
|
||||
":core:util.runtime",
|
||||
":compiler:compiler.version"
|
||||
)
|
||||
)
|
||||
|
||||
val projectsToShadow = compilerComponents + listOf(":jps-plugin")
|
||||
|
||||
dependencies {
|
||||
projectsToShadow.forEach {
|
||||
embedded(project(it)) { isTransitive = false }
|
||||
|
||||
Reference in New Issue
Block a user