This is an automated email from the ASF dual-hosted git repository.
sergehuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/master by this push:
new b4fe279fb UNOMI-1011: Stop publishing the empty buildcache jar (#955)
b4fe279fb is described below
commit b4fe279fb06803272fd84c16b813eb9641f4dc3d
Author: Serge Huber <[email protected]>
AuthorDate: Thu Nov 12 08:39:22 2026 +0100
UNOMI-1011: Stop publishing the empty buildcache jar (#955)
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
package/pom.xml | 26 --------------------------
release-audit.sh | 21 ++++++++++++++++++++-
2 files changed, 20 insertions(+), 27 deletions(-)
diff --git a/package/pom.xml b/package/pom.xml
index 5632a5bf4..f85cbe125 100644
--- a/package/pom.xml
+++ b/package/pom.xml
@@ -419,32 +419,6 @@
</configuration>
</plugin>
- <!-- Create a dummy JAR just for caching, this is a workaround to
avoid Maven Build cache issues -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <executions>
- <execution>
- <id>create-dummy-jar</id>
- <phase>package</phase>
- <goals>
- <goal>jar</goal>
- </goals>
- <configuration>
- <!-- A classifier keeps this jar a side artifact. Without
one, the jar plugin makes it
- the artifact of this pom-packaged module, which is
what the blanket deploy skip
- below was added to hide, and that skip took the
distribution with it. -->
- <classifier>buildcache</classifier>
- <archive>
- <manifest>
-
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- </manifest>
- </archive>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
</plugins>
</build>
diff --git a/release-audit.sh b/release-audit.sh
index 2a0dd0919..615b84351 100755
--- a/release-audit.sh
+++ b/release-audit.sh
@@ -17,4 +17,23 @@
# limitations under the License.
#
################################################################################
-mvn clean install -P integration-tests,rat
\ No newline at end of file
+set -euo pipefail
+
+mvn clean install -P integration-tests,rat
+
+# UNOMI-1011: the package module must publish the distribution archives, and
no longer
+# builds or publishes the empty buildcache jar it once had for the (now
disabled) build cache.
+STAGE=$(mktemp -d)
+trap 'rm -rf "$STAGE"' EXIT
+mvn -pl package deploy -DskipTests
-DaltDeploymentRepository="local::default::file://${STAGE}"
+if find "$STAGE" -name '*buildcache*' | grep -q .; then
+ echo "error: staged artifacts must not include a buildcache jar
(UNOMI-1011)" >&2
+ find "$STAGE" -name '*buildcache*' >&2
+ exit 1
+fi
+if ! find "$STAGE" \( -name 'unomi-*.zip' -o -name 'unomi-*.tar.gz' \) | grep
-q .; then
+ echo "error: staged artifacts must include the binary distribution archives"
>&2
+ find "$STAGE" -type f >&2
+ exit 1
+fi
+echo "UNOMI-1011 check ok: distribution present, no buildcache artifact in
${STAGE}"