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:
Ilya Gorbunov
2019-06-17 18:46:46 +03:00
parent 5bafba6bff
commit eae1813ead
9 changed files with 3 additions and 0 deletions
+2
View File
@@ -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)
}
+1
View File
@@ -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'
}