Apache Maven reproducible builds
Apache 2.0Configure a Maven project for reproducible builds: pin dependency and plugin versions, set project.build.outputTimestamp, set explicit UTF-8 source encoding, and upgrade core plugins to versions that honor the output timestamp.
org. openrewrite. maven. ReproducibleBuildsmod run . --recipe= org. openrewrite. maven. ReproducibleBuildsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Add explicit dependency versions
- Add explicit plugin versions
- Upgrade Maven plugin version
org.apache.maven.plugins:maven-*-plugin:latest.release - Add Maven project property
project.build.sourceEncoding=UTF-8 - Add Maven project property
project.reporting.outputEncoding=UTF-8 - Add
project.build.outputTimestampfor reproducible builds