stdlib-js(-v1/-ir): rename source files to avoid duplicates in sources
Prohibit having duplicates in sources jar and rename those source files, that clash with the same named source files coming from the common js source root. Relates to KT-31965
This commit is contained in:
@@ -143,10 +143,12 @@ archivesBaseName = 'kotlin-stdlib-js-ir'
|
||||
|
||||
jar {
|
||||
manifestAttributes(manifest, project, 'Main')
|
||||
duplicatesStrategy = DuplicatesStrategy.FAIL
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier = 'sources'
|
||||
duplicatesStrategy = DuplicatesStrategy.FAIL
|
||||
from (sourceSets.main.allSource)
|
||||
}
|
||||
|
||||
|
||||
@@ -308,6 +308,7 @@ task mergedJar(type: Jar, dependsOn: compileJs) {
|
||||
task sourcesJar(type: Jar, dependsOn: compileJs) {
|
||||
classifier = 'sources'
|
||||
includeEmptyDirs false
|
||||
duplicatesStrategy = DuplicatesStrategy.FAIL
|
||||
from(sourceSets.builtins.allSource) {
|
||||
into 'kotlin'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user