Repository navigation
fix: make the Java jars reproducible and check the build's Maven and Java versions - #527
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
project.build.outputTimestampmakes the Java jars (main, sources, javadoc) ofwebrtc,webrtc-media,webrtc-swingandwebrtc-javafxbyte for byte the same across builds.release:prepareupdates it on every release; the manifest'sBuild-Datenow shows that timestamp.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-pluginwas the only one missing).jni-checkprofile, which puts-Xcheck:jniin front.