Skip to content

fix: make the Java jars reproducible and check the build's Maven and Java versions - #527

Merged
devopvoid merged 3 commits into
mainfrom
fix/reproducible-builds
Nov 3, 2026
Merged

devopvoid merged 3 commits into
mainfrom
fix/reproducible-builds

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • project.build.outputTimestamp makes the Java jars (main, sources, javadoc) of webrtc, webrtc-media, webrtc-swing and webrtc-javafx byte for byte the same across builds. release:prepare updates it on every release; the manifest's Build-Date now shows that timestamp.
  • The enforcer plugin checks for Maven 3.9.6 or newer (needed by cmake-maven-plugin; the build guide said 3.6.3) and Java 17 or newer, and that every plugin has a pinned version (maven-clean-plugin was the only one missing).
  • The test JVM arguments are defined once and shared with the jni-check profile, which puts -Xcheck:jni in front.

Every jar entry and the manifest's Build-Date take the root pom's
project.build.outputTimestamp instead of the time of the build, which
release:prepare updates for the release and the next development version.
The unused timestamp properties are gone.
The enforcer stops a build early on Maven older than 3.9.6, which the
native builds' cmake-maven-plugin needs (the docs said 3.6.3), on a JDK
older than 17, and on a plugin without a pinned version; maven-clean-plugin
gets one.
The profile repeated the default argLine, so every module flag had to be
added twice; it now prepends -Xcheck:jni to one property.
@devopvoid
devopvoid merged commit 4e2447e into main Nov 3, 2026
25 of 26 checks passed
@devopvoid
devopvoid deleted the fix/reproducible-builds branch November 3, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant