Build: Fix publication of stdlib-js to avoid publishing all artifacts

Because of https://github.com/gradle/gradle/issues/4612 install and
uploadArchives tasks published artifacts which were not meant
to be published
This commit is contained in:
Vyacheslav Gerasimov
2020-01-17 20:37:32 +03:00
parent 7dcdc506d8
commit 3f10329347
+12 -4
View File
@@ -15,6 +15,7 @@ configurations {
distSources
distJs
distLibrary
publishedArtifacts
}
def builtinsSrcDir = "${buildDir}/builtin-sources"
@@ -340,12 +341,13 @@ task distSourcesJar(type: Jar) {
}
}
def javadocJar = javadocJar()
artifacts {
runtime libraryJarWithIr
archives libraryJarWithIr
archives sourcesJar
publishedArtifacts libraryJarWithIr
publishedArtifacts sourcesJar
publishedArtifacts javadocJar
sources sourcesJar
distSources distSourcesJar
distLibrary libraryJarWithoutIr
@@ -355,7 +357,13 @@ artifacts {
}
}
javadocJar()
uploadArchives {
configuration = configurations.publishedArtifacts
}
install {
configuration = configurations.publishedArtifacts
}
node {
download = true