KT-54452 Use js-ir sources for building stdlib-js sources.jar and API docs

This commit is contained in:
Ilya Gorbunov
2023-03-14 04:04:35 +01:00
committed by Space Team
parent cd07eba25c
commit 9892a49c4b
3 changed files with 43 additions and 15 deletions
+6 -13
View File
@@ -285,22 +285,15 @@ task libraryJarWithIr(type: Zip, dependsOn: libraryJarWithoutIr) {
jar.dependsOn(libraryJarWithIr)
task sourcesJar(type: Jar, dependsOn: compileJs) {
dependsOn(":kotlin-stdlib-js-ir:sourcesJar")
archiveClassifier.set('sources')
includeEmptyDirs false
duplicatesStrategy = DuplicatesStrategy.FAIL
from("${builtinsDir}/native/kotlin") {
into 'kotlin'
include 'Comparable.kt'
include 'Enum.kt'
}
from(sourceSets.main.allSource) {
into 'kotlin'
exclude '**/*.java'
exclude 'org.w3c/**'
exclude 'js/**'
}
from(sourceSets.main.allSource) {
include 'org.w3c/**'
from({
def irSources = tasks.getByPath(":kotlin-stdlib-js-ir:sourcesJar")
zipTree(irSources.outputs.files.first().path)
}) {
exclude 'META-INF/*'
}
}