Skip to content

Commit

Permalink
Try different method for not publishing shadowJar
Browse files Browse the repository at this point in the history
  • Loading branch information
dgelessus committed May 2, 2024
1 parent 2b936e8 commit a5503d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
inputs.property("project.version", project.version)
filesMatching("de/tla2b/build.properties") {
Expand All @@ -77,8 +84,6 @@ publishing {
publications {
mavenJava(MavenPublication) {
from components.java
// Don't publish the shadowJar to Maven Central
artifacts = artifacts.findAll {it.classifier != "all"}

pom {
name = 'TLA+ to B-AST'
Expand Down

0 comments on commit a5503d2

Please sign in to comment.