gnodet opened a new pull request, #13080:
URL: https://github.com/apache/maven/pull/13080
Move the 13 hardcoded plugin version constants from Java source into POM
properties in `impl/maven-core/pom.xml`. The values are filtered at build time
into `plugin-versions.properties` and loaded at runtime by a new
`PluginVersions` utility class.
This makes the default lifecycle plugin versions visible to
dependency-update bots (Dependabot, Renovate) that scan POM files for version
properties, enabling automated version bump PRs.
**Changes:**
- **`impl/maven-core/pom.xml`** — Add `<properties>` section with
`version.maven-<name>-plugin` entries for all 13 default plugins
- **`plugin-versions.properties`** — New resource file with `${...}`
placeholders, filtered at build time
- **`PluginVersions.java`** — New utility class that loads versions from the
properties file and exposes them as constants
- **`AbstractLifecycleMappingProvider.java`** — Replace hardcoded version
strings with `PluginVersions.*` constants
- **`DefaultLifecycleRegistry.java`** — Replace hardcoded clean/site plugin
versions with `PluginVersions.*` constants
No behavioral change: all version values are identical to the previous
hardcoded constants.
Follow-up to the discussion in #13076 about automating plugin version bumps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]