Do not pack source of invisible runtime helpers to stdlib-js
Use reference sources of built-in Enum and Comparable instead. KT-42318
This commit is contained in:
@@ -274,11 +274,13 @@ task libraryJarWithIr(type: Zip, dependsOn: libraryJarWithoutIr) {
|
|||||||
jar.dependsOn(libraryJarWithIr)
|
jar.dependsOn(libraryJarWithIr)
|
||||||
|
|
||||||
task sourcesJar(type: Jar, dependsOn: compileJs) {
|
task sourcesJar(type: Jar, dependsOn: compileJs) {
|
||||||
classifier = 'sources'
|
archiveClassifier.set('sources')
|
||||||
includeEmptyDirs false
|
includeEmptyDirs false
|
||||||
duplicatesStrategy = DuplicatesStrategy.FAIL
|
duplicatesStrategy = DuplicatesStrategy.FAIL
|
||||||
from(sourceSets.builtins.allSource) {
|
from("${builtinsDir}/native/kotlin") {
|
||||||
into 'kotlin'
|
into 'kotlin'
|
||||||
|
include 'Comparable.kt'
|
||||||
|
include 'Enum.kt'
|
||||||
}
|
}
|
||||||
from(sourceSets.main.allSource) {
|
from(sourceSets.main.allSource) {
|
||||||
into 'kotlin'
|
into 'kotlin'
|
||||||
@@ -294,7 +296,7 @@ task sourcesJar(type: Jar, dependsOn: compileJs) {
|
|||||||
task distSourcesJar(type: Jar) {
|
task distSourcesJar(type: Jar) {
|
||||||
dependsOn(sourcesJar, configurations.commonSources)
|
dependsOn(sourcesJar, configurations.commonSources)
|
||||||
destinationDirectory = file("$buildDir/lib/dist")
|
destinationDirectory = file("$buildDir/lib/dist")
|
||||||
archiveClassifier = 'sources'
|
archiveClassifier.set('sources')
|
||||||
duplicatesStrategy = DuplicatesStrategy.FAIL
|
duplicatesStrategy = DuplicatesStrategy.FAIL
|
||||||
from zipTree(sourcesJar.outputs.files.singleFile)
|
from zipTree(sourcesJar.outputs.files.singleFile)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user