Publish :compiler:test-infrastructure for ide
This commit is contained in:
@@ -968,6 +968,7 @@ tasks {
|
||||
":prepare:ide-plugin-dependencies:compiler-components-for-jps:publish",
|
||||
":prepare:ide-plugin-dependencies:parcelize-compiler-plugin-for-ide:publish",
|
||||
":prepare:ide-plugin-dependencies:lombok-compiler-plugin-for-ide:publish",
|
||||
":prepare:ide-plugin-dependencies:kotlin-compiler-tests-for-ide:publish",
|
||||
":kotlin-script-runtime:publish",
|
||||
":kotlin-script-util:publish",
|
||||
":kotlin-scripting-common:publish",
|
||||
|
||||
@@ -274,13 +274,15 @@ fun Project.publishProjectJars(projects: List<String>, libraryDependencies: List
|
||||
javadocJar()
|
||||
}
|
||||
|
||||
fun Project.publishTestJar(projectName: String) {
|
||||
fun Project.publishTestJar(projects: List<String>) {
|
||||
apply<JavaPlugin>()
|
||||
|
||||
val fatJarContents by configurations.creating
|
||||
|
||||
dependencies {
|
||||
fatJarContents(project(projectName, configuration = "tests-jar")) { isTransitive = false }
|
||||
for (projectName in projects) {
|
||||
fatJarContents(project(projectName, configuration = "tests-jar")) { isTransitive = false }
|
||||
}
|
||||
}
|
||||
|
||||
publish()
|
||||
@@ -297,7 +299,7 @@ fun Project.publishTestJar(projectName: String) {
|
||||
|
||||
sourcesJar {
|
||||
from {
|
||||
project(projectName).testSourceSet.allSource
|
||||
projects.map { project(it).testSourceSet.allSource }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
idePluginDependency {
|
||||
publishTestJar(":compiler:incremental-compilation-impl")
|
||||
publishTestJar(listOf(":compiler:incremental-compilation-impl"))
|
||||
}
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
idePluginDependency {
|
||||
publishTestJar(":compiler:incremental-compilation-impl")
|
||||
publishTestJar(listOf(":compiler:incremental-compilation-impl"))
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
idePluginDependency {
|
||||
publishTestJar(":kotlin-build-common")
|
||||
publishTestJar(listOf(":kotlin-build-common"))
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
idePluginDependency {
|
||||
publishTestJar(listOf(":compiler:test-infrastructure", ":compiler:tests-common-new", ":compiler:test-infrastructure-utils"))
|
||||
}
|
||||
+2
-1
@@ -369,7 +369,8 @@ include ":prepare:ide-plugin-dependencies:android-extensions-compiler-plugin-for
|
||||
":prepare:ide-plugin-dependencies:parcelize-compiler-plugin-for-ide",
|
||||
":prepare:ide-plugin-dependencies:lombok-compiler-plugin-for-ide",
|
||||
":prepare:ide-plugin-dependencies:tests-common-tests-for-ide",
|
||||
":prepare:ide-plugin-dependencies:compiler-components-for-jps"
|
||||
":prepare:ide-plugin-dependencies:compiler-components-for-jps",
|
||||
":prepare:ide-plugin-dependencies:kotlin-compiler-tests-for-ide"
|
||||
|
||||
if (buildProperties.includeCidrPlugins) {
|
||||
logger.info("Including CIDR modules in settings.gradle")
|
||||
|
||||
Reference in New Issue
Block a user