Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#440] Simplify reproducible builds #441

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

tristantarrant
Copy link
Member

Closes #440

@tristantarrant tristantarrant requested a review from a team as a code owner March 10, 2025 11:34
Copy link
Member

@pruivo pruivo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is this "warning" shown at the beginning

[INFO] --- artifact:3.6.0:compare (default-cli) @ parent ---
[ERROR] Reproducible Build not activated by project.build.outputTimestamp property: see https://maven.apache.org/guides/mini/guide-reproducible-builds.html
[ERROR] project.build.outputTimestamp = "${git.commit.time}": isn't Git value set?
[ERROR] Did validate phase run and Git plugin set the value?
[ERROR] if using git-commit-id-plugin, <skipPoms>false</skipPoms> may solve the issue.
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /home/pedro/.opt/jdk/maven
Java version: 23.0.2, vendor: Eclipse Adoptium, runtime: /home/pedro/.opt/jdk/jdk-23.0.2+7
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.13.5-2-manjaro", arch: "amd64", family: "unix"

parent/pom.xml Outdated
<build>
<plugins>
<plugin>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be outside the profile? Although we don't need it in the product (AFAIK), it would be nice to have reproducible builds all the time. Just my 2 cents.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I've moved it out of the profile.

@tristantarrant tristantarrant force-pushed the 440/reproducible-builds branch from b8b873d to 79e0792 Compare March 10, 2025 13:50
* Use the git-commit-id in native mode
* Drop buildnumber plugin
@tristantarrant tristantarrant force-pushed the 440/reproducible-builds branch from 79e0792 to 58ec076 Compare March 10, 2025 14:17
@tristantarrant
Copy link
Member Author

@pruivo running the artifact plugin from the command-line by itself is not enough, since it won't run the git-commit-id plugin first. Use:

mvn initialize artifact:check-buildplan

@pruivo
Copy link
Member

pruivo commented Mar 10, 2025

@pruivo running the artifact plugin from the command-line by itself is not enough, since it won't run the git-commit-id plugin first. Use:

mvn initialize artifact:check-buildplan

If I set <skipPoms>false</skipPoms>, I don't need to add the initalize phase.

@pruivo pruivo merged commit edaca99 into infinispan:main Mar 10, 2025
5 checks passed
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.

Reproducible builds v2
2 participants