github mojohaus/extra-enforcer-rules 1.13.0

37 minutes ago

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.
  • enforceBytecodeVersion checks reactor modules: the rule now scans the .class files of a directory artifact, such as a module's target/classes, instead of skipping everything that is not a JAR. In a reactor the rule has to run after compile to see those classes. The rule now also skips nested META-INF/versions entries.
  • banDuplicateClasses and the other dependency rules resolve dependencies through the resolver, so the rules no longer report a duplicate for an artifact that a direct provided dependency already overrides. Contributed by @wilx.
  • requireEncoding: %regex[...] patterns in includes and excludes are no longer split at commas and pipes inside the brackets.
  • Documentation: the site pages are now Markdown.

🚨 Removed

🚀 New features and improvements

🐛 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

👻 Maintenance

🔧 Build

📦 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.

Full changelog

Don't miss a new extra-enforcer-rules release

NewReleases is sending notifications on new releases.