A feature release that raises the Maven requirement to 3.9.0, lets enforceBytecodeVersion check reactor modules and fixes three rule bugs.
✨ Highlights
- Maven 3.9.0 or later is now required.
enforceBytecodeVersionchecks reactor modules: the rule now scans the.classfiles of a directory artifact, such as a module'starget/classes, instead of skipping everything that is not a JAR. In a reactor the rule has to run aftercompileto see those classes. The rule now also skips nestedMETA-INF/versionsentries.banDuplicateClassesand the other dependency rules resolve dependencies through the resolver, so the rules no longer report a duplicate for an artifact that a directprovideddependency already overrides. Contributed by @wilx.requireEncoding:%regex[...]patterns inincludesandexcludesare no longer split at commas and pipes inside the brackets.- Documentation: the site pages are now Markdown.
🚨 Removed
- Require Maven 3.9.0 (#377) @slachiewicz
🚀 New features and improvements
- Check directory artifacts in EnforceBytecodeVersion (#400) @slachiewicz
🐛 Bug Fixes
- Keep %regex patterns intact in RequireEncoding includes and excludes (#403) @slachiewicz
- Skip nested META-INF/versions entries in EnforceBytecodeVersion (#402) @slachiewicz
- Resolve dependencies through the resolver for the dependency rules (#404) @slachiewicz
📝 Documentation updates
- Refresh README and site pages, require documentation updates (#411) @slachiewicz
- Describe the Markdown site sources in AGENTS.md (#410) @slachiewicz
- Fix stale documentation references (#409) @slachiewicz
- Convert the site documents from APT to Markdown (#396) @slachiewicz
- Add AGENTS.md (#384) @slachiewicz
👻 Maintenance
- Move bytecode-version option validation ITs to unit tests (#412) @slachiewicz
- Replace utility calls with the JDK (#406) @slachiewicz
- Apply OpenRewrite cleanups (#405) @slachiewicz
- Move model-only rule ITs to unit tests (#399) @slachiewicz
- Declare org.eclipse.sisu.inject at the version of org.eclipse.sisu.plexus (#393) @slachiewicz
- Use Java 8 in the compiling IT (#389) @slachiewicz
- Explain why maven-enforcer-plugin.version is set in this POM (#388) @slachiewicz
- Declare the Maven artifacts the code uses (#386) @slachiewicz
- Keep the IT fixture log4j-api at the version the mock repository has (#385) @slachiewicz
- Apply the JUnit 5 best practices to the tests (#382) @slachiewicz
- Write the smokes verify script as an assertion (#378) @slachiewicz
- Run one integration test per CPU core (#374) @slachiewicz
- Check dependencies monthly and group the updates (#373) @slachiewicz
- Run fewer JDKs on macOS and Windows and the ITs in parallel (#371) @slachiewicz
- Keep Dependabot off Mockito 5 (#370) @slachiewicz
- Port the IT scripts from BeanShell to Groovy (#369) @slachiewicz
🔧 Build
- Add PR release-note labeler (#408) @slachiewicz
- Run the release drafter only in the mojohaus organization (#401) @slachiewicz
- Reuse the cached prefix file in the integration tests (#398) @slachiewicz
- Keep Dependabot on Maven 3.9.x and Resolver 1.9.x (#392) @slachiewicz
- Restore the IT fixture log4j-api to the version the mock repository has (#387) @slachiewicz
- Use the runners' cached Temurin JDKs in CI (#383) @slachiewicz
- Run CI on Maven 4 (#381) @slachiewicz
- Serve the vulnerable fixture dependencies from a mock repository (#379) @slachiewicz
- Assign merged pull requests to the release milestone (#376) @slachiewicz
📦 Dependency updates
- Bump the maven group across 1 directory with 3 updates (#394) @dependabot[bot]
- Bump org.apache.logging.log4j:log4j-api from 2.17.2 to 2.25.5 in /src/it/enforce-bytecode-version-multirelease (#372) @dependabot[bot]
- Bump org.apache.logging.log4j:log4j-api from 2.17.2 to 2.25.5 in /src/it/banduplicate-classes-jdk9 (#375) @dependabot[bot]
- Bump commons-codec:commons-codec from 1.22.1 to 1.23.0 in the maven group (#380) @dependabot[bot]
Thanks to @slachiewicz and @wilx.