From 2b936e8933e367e099c5dd88635cdfe12f651562 Mon Sep 17 00:00:00 2001 From: dgelessus <dgelessus@users.noreply.github.com> Date: Thu, 2 May 2024 16:35:38 +0200 Subject: [PATCH] Try to fix the publishing shadowJar exclusion The previous solution failed on upload with a PublishException: Cannot publish module metadata because an artifact from the 'java' component has been removed. --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 48a1264..fe6050d 100644 --- a/build.gradle +++ b/build.gradle @@ -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' -- GitLab