[Gradle, Build] Publish an artifact with unpublished compiler modules for KGP

#KT-61449 In Progress
This commit is contained in:
Alexander.Likhachev
2023-08-11 00:53:31 +02:00
committed by Space Team
parent c3f8706fe2
commit 6cfa165ddb
10 changed files with 207 additions and 39 deletions
@@ -1,6 +1,5 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import com.github.jengelman.gradle.plugins.shadow.transformers.DontIncludeResourceTransformer
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.pill.PillExtension
@@ -62,7 +61,7 @@ dependencies {
}
}
commonCompileOnly(project(":compiler:incremental-compilation-impl"))
commonCompileOnly(project(":compiler:cli"))
commonCompileOnly(project(":daemon-common"))
commonCompileOnly(project(":kotlin-daemon-client"))
commonCompileOnly(project(":kotlin-gradle-compiler-types"))
@@ -99,21 +98,23 @@ dependencies {
}
commonCompileOnly(project(":kotlin-tooling-metadata"))
commonCompileOnly(project(":compiler:build-tools:kotlin-build-statistics"))
commonCompileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all")) { isTransitive = false }
commonImplementation(project(":kotlin-gradle-plugin-idea"))
commonImplementation(project(":kotlin-gradle-plugin-idea-proto"))
commonImplementation(project(":kotlin-util-klib"))
commonImplementation(project(":native:kotlin-klib-commonizer-api"))
commonImplementation(project(":compiler:build-tools:kotlin-build-tools-api"))
commonImplementation(project(":compiler:build-tools:kotlin-build-statistics"))
commonRuntimeOnly(project(":kotlin-compiler-embeddable"))
commonRuntimeOnly(project(":kotlin-compiler-runner")) {
// Excluding dependency with not-relocated 'com.intellij' types
exclude(group = "org.jetbrains.kotlin", module = "kotlin-build-common")
exclude(group = "org.jetbrains.kotlin", module = "kotlin-compiler-embeddable")
}
commonRuntimeOnly(project(":kotlin-scripting-compiler-embeddable"))
commonRuntimeOnly(project(":kotlin-scripting-compiler-impl-embeddable"))
commonRuntimeOnly(project(":kotlin-util-klib"))
commonRuntimeOnly(project(":prepare:kotlin-gradle-plugin-compiler-dependencies"))
embedded(project(":kotlin-gradle-build-metrics"))
embedded(project(":kotlin-gradle-statistics"))