Use rewriteDeps task on the projects with runtime dependency on embeddable compiler...
which are using shaded dependencies
This commit is contained in:
@@ -25,28 +25,16 @@ dependencies {
|
||||
compileOnly 'org.jetbrains.kotlin:gradle-api:1.6'
|
||||
}
|
||||
|
||||
def originalSrc = "$kotlin_root/plugins/noarg/noarg-cli/src"
|
||||
//def targetSrc = file("$buildDir/noarg-target-src")
|
||||
//
|
||||
//task preprocessSources(type: Copy) {
|
||||
// from originalSrc
|
||||
// into targetSrc
|
||||
// filter { it.replaceAll('(?<!\\.)com\\.intellij', 'org.jetbrains.kotlin.com.intellij') }
|
||||
//}
|
||||
|
||||
//sourceSets.main.java.srcDirs += originalSrc
|
||||
|
||||
//compileKotlin.dependsOn preprocessSources
|
||||
|
||||
evaluationDependsOn(":kotlin-noarg-compiler-plugin")
|
||||
|
||||
jar {
|
||||
// from(originalSrc) { include("META-INF/**") }
|
||||
from(project(":kotlin-noarg-compiler-plugin").sourceSets.main.output.classesDirs)
|
||||
from(project(":kotlin-noarg-compiler-plugin").sourceSets.main.output.resourcesDir)
|
||||
manifestAttributes(manifest, project)
|
||||
}
|
||||
|
||||
ArtifactsKt.runtimeJar(project, EmbeddableKt.rewriteDepsToShadedCompiler(project, jar, {}), {})
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
|
||||
Reference in New Issue
Block a user