[JS] Drop publishing JAR artifact of kotlin-test-js
^KT-62067 fixed
This commit is contained in:
committed by
Space Team
parent
e9cc2931cc
commit
51c6e81de9
@@ -459,7 +459,6 @@ publishing {
|
||||
val kotlinTestJsPublication = register("js", MavenPublication::class) {
|
||||
artifactId = "kotlin-test-js"
|
||||
from(jsComponent)
|
||||
artifact(tasks.getByPath(":kotlin-test:kotlin-test-js-ir:jsLegacyJar") as Jar)
|
||||
artifact(tasks.getByPath(":kotlin-test:kotlin-test-js-ir:jsSourcesJar") as org.gradle.jvm.tasks.Jar)
|
||||
configureKotlinPomAttributes(project, "Kotlin Test for JS", packaging = "klib")
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
|
||||
import kotlin.io.path.copyTo
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
@@ -60,26 +59,12 @@ tasks.named("compileKotlinJs") {
|
||||
(this as KotlinCompile<*>).kotlinOptions.freeCompilerArgs += "-Xir-module-name=kotlin-test"
|
||||
}
|
||||
|
||||
val jsLegacyRuntimeElements by configurations.creating {
|
||||
isCanBeResolved = false
|
||||
}
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
tasks {
|
||||
val jsJar by existing(Jar::class) {
|
||||
archiveAppendix = null
|
||||
manifestAttributes(manifest, "Test")
|
||||
}
|
||||
val jsLegacyJar by creating(Jar::class) {
|
||||
val jsJarFile = jsJar.flatMap { it.archiveFile }
|
||||
inputs.file(jsJarFile)
|
||||
archiveAppendix = null
|
||||
doLast {
|
||||
jsJarFile.get().asFile.toPath().copyTo(archiveFile.get().asFile.toPath(), overwrite = true)
|
||||
}
|
||||
}
|
||||
artifacts {
|
||||
add(jsLegacyRuntimeElements.name, jsLegacyJar)
|
||||
}
|
||||
val jsSourcesJar by existing(org.gradle.jvm.tasks.Jar::class) {
|
||||
archiveAppendix = null
|
||||
}
|
||||
|
||||
@@ -168,7 +168,6 @@ dependencies {
|
||||
libraries(kotlinStdlib(classifier = "distJsJar"))
|
||||
libraries(kotlinStdlib(classifier = "distJsKlib"))
|
||||
libraries(project(":kotlin-test:kotlin-test-js-ir", configuration = "jsRuntimeElements"))
|
||||
libraries(project(":kotlin-test:kotlin-test-js-ir", configuration = "jsLegacyRuntimeElements"))
|
||||
}
|
||||
|
||||
librariesStripVersion(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
|
||||
|
||||
Reference in New Issue
Block a user