KT-54452 Use js-ir sources for building stdlib-js sources.jar and API docs
This commit is contained in:
committed by
Space Team
parent
cd07eba25c
commit
9892a49c4b
@@ -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/*'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user