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:
@@ -15,6 +15,7 @@ configurations {
|
|||||||
distSources
|
distSources
|
||||||
distJs
|
distJs
|
||||||
distLibrary
|
distLibrary
|
||||||
|
publishedArtifacts
|
||||||
}
|
}
|
||||||
|
|
||||||
def builtinsSrcDir = "${buildDir}/builtin-sources"
|
def builtinsSrcDir = "${buildDir}/builtin-sources"
|
||||||
@@ -340,12 +341,13 @@ task distSourcesJar(type: Jar) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def javadocJar = javadocJar()
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
runtime libraryJarWithIr
|
runtime libraryJarWithIr
|
||||||
archives libraryJarWithIr
|
publishedArtifacts libraryJarWithIr
|
||||||
archives sourcesJar
|
publishedArtifacts sourcesJar
|
||||||
|
publishedArtifacts javadocJar
|
||||||
sources sourcesJar
|
sources sourcesJar
|
||||||
distSources distSourcesJar
|
distSources distSourcesJar
|
||||||
distLibrary libraryJarWithoutIr
|
distLibrary libraryJarWithoutIr
|
||||||
@@ -355,7 +357,13 @@ artifacts {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
javadocJar()
|
uploadArchives {
|
||||||
|
configuration = configurations.publishedArtifacts
|
||||||
|
}
|
||||||
|
|
||||||
|
install {
|
||||||
|
configuration = configurations.publishedArtifacts
|
||||||
|
}
|
||||||
|
|
||||||
node {
|
node {
|
||||||
download = true
|
download = true
|
||||||
|
|||||||
Reference in New Issue
Block a user