Skip to content
Snippets Groups Projects
Commit a5503d29 authored by dgelessus's avatar dgelessus
Browse files

Try different method for not publishing shadowJar

See johnrengelman/shadow#586 and johnrengelman/shadow#651.
parent 2b936e89
No related branches found
No related tags found
No related merge requests found
Pipeline #135004 passed
...@@ -54,6 +54,13 @@ shadowJar { ...@@ -54,6 +54,13 @@ shadowJar {
} }
} }
// Don't publish the shadowJar to Maven Central. Code from:
// https://github.com/johnrengelman/shadow/issues/586#issuecomment-708375599
// https://github.com/johnrengelman/shadow/issues/651#issuecomment-815921124
components.java.withVariantsFromConfiguration(configurations.shadowRuntimeElements) {
skip()
}
processResources { processResources {
inputs.property("project.version", project.version) inputs.property("project.version", project.version)
filesMatching("de/tla2b/build.properties") { filesMatching("de/tla2b/build.properties") {
...@@ -77,8 +84,6 @@ publishing { ...@@ -77,8 +84,6 @@ publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
from components.java from components.java
// Don't publish the shadowJar to Maven Central
artifacts = artifacts.findAll {it.classifier != "all"}
pom { pom {
name = 'TLA+ to B-AST' name = 'TLA+ to B-AST'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment