Skip to content

Commit

Permalink
Try to fix the publishing shadowJar exclusion
Browse files Browse the repository at this point in the history
The previous solution failed on upload with a PublishException:
Cannot publish module metadata because an artifact from the 'java'
component has been removed.
  • Loading branch information
dgelessus committed May 2, 2024
1 parent 730fc0d commit 2b936e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ publishing {
mavenJava(MavenPublication) {
from components.java
// Don't publish the shadowJar to Maven Central
artifacts.removeIf {it.classifier == "all"}
artifacts = artifacts.findAll {it.classifier != "all"}

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

0 comments on commit 2b936e8

Please sign in to comment.