Fix ConcurrentModificationException
This exception is happening on build configuration trying to remove default jar task artifacts from published one. I've set 'jar' task to be always disabled instead and just add shadow jar to artifacts.
This commit is contained in:
@@ -40,8 +40,6 @@ sourceSets {
|
||||
"test" { projectDefault() }
|
||||
}
|
||||
|
||||
publish()
|
||||
|
||||
// dummy is used for rewriting dependencies to the shaded packages in the embeddable compiler
|
||||
compilerDummyJar(compilerDummyForDependenciesRewriting("compilerDummy") {
|
||||
archiveClassifier.set("dummy")
|
||||
@@ -54,6 +52,10 @@ val runtimeJar = runtimeJar(embeddableCompiler()) {
|
||||
mergeServiceFiles()
|
||||
}
|
||||
|
||||
publish {
|
||||
setArtifacts(listOf(runtimeJar))
|
||||
}
|
||||
|
||||
sourcesJar {
|
||||
val compilerTask = project(":kotlin-compiler").tasks.named<Jar>("sourcesJar")
|
||||
dependsOn(compilerTask)
|
||||
|
||||
Reference in New Issue
Block a user