Repository navigation
Releases
Releases · mojohaus/extra-enforcer-rules
1.13.0
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.
1.12.1
👻 Maintenance
- Stop dependabot from updating test fixtures (#367) @slachiewicz
📦 Dependency updates
11 changes
- Bump org.apache.tomcat:tomcat-catalina from 9.0.118 to 9.0.121 in /src/it/mojo-1682 (#368) @dependabot[bot]
- Bump org.apache.logging.log4j:log4j-api from 2.17.2 to 2.25.5 in /src/it/banduplicate-classes-ignore-when-identical (#365) @dependabot[bot]
- Bump commons-codec:commons-codec from 1.22.0 to 1.22.1 (#363) @dependabot[bot]
- Bump org.apache.logging.log4j:log4j-api from 2.17.2 to 2.25.5 in /src/it/banduplicate-classes-fail-when-not-identical (#364) @dependabot[bot]
- Bump org.codehaus.mojo:mojo-parent from 96 to 97 (#362) @dependabot[bot]
- Bump apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml from 4 to 5 (#359) @dependabot[bot]
- Bump apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml from 4 to 5 (#360) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.117 to 9.0.118 in /src/it/mojo-1682 (#357) @dependabot[bot]
- Bump org.apache.maven.enforcer:enforcer-api from 3.6.2 to 3.6.3 (#358) @dependabot[bot]
- Bump commons-codec:commons-codec from 1.21.0 to 1.22.0 (#356) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.113 to 9.0.117 in /src/it/mojo-1682 (#353) @dependabot[bot]
1.12.0
🚀 New features and improvements
- Recognize newer and future JDK versions (#350) @slawekjaranowski
- Move EnforceManagedDepsRule from https://github.com/jdcasey/enforce-managed-deps-rule (#338) @akuhtz
📝 Documentation updates
- Document POM inheritance for banDuplicateClasses using combine.children (#341) @copilot-swe-agent[bot]
👻 Maintenance
- Use TempDir in setup method in ClassFileTest (#348) @slawekjaranowski
- JUnit 5 best practices (#343) @slachiewicz
📦 Dependency updates
- Bump org.codehaus.mojo:mojo-parent from 95 to 96 (#352) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.112 to 9.0.113 in /src/it/mojo-1682 (#351) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.110 to 9.0.112 in /src/it/mojo-1682 (#349) @dependabot[bot]
- Bump commons-codec:commons-codec from 1.20.0 to 1.21.0 (#347) @dependabot[bot]
- Bump org.codehaus.mojo:mojo-parent from 94 to 95 (#346) @dependabot[bot]
- Bump commons-codec:commons-codec from 1.19.0 to 1.20.0 (#345) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.107 to 9.0.110 in /src/it/mojo-1682 (#340) @dependabot[bot]
1.11.0
🚀 New features and improvements
🐛 Bug Fixes
📦 Dependency updates
- Bump org.codehaus.mojo:mojo-parent from 93 to 94 (#337) @dependabot[bot]
- Bump org.apache.maven.enforcer:enforcer-api from 3.6.1 to 3.6.2 (#336) @dependabot[bot]
- Bump org.codehaus.mojo:mojo-parent from 92 to 93 (#333) @dependabot[bot]
- Bump commons-codec:commons-codec from 1.18.0 to 1.19.0 (#332) @dependabot[bot]
- Bump org.apache.maven.enforcer:enforcer-api from 3.6.0 to 3.6.1 (#331) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.106 to 9.0.107 in /src/it/mojo-1682 (#330) @dependabot[bot]
- Bump org.apache.maven.enforcer:enforcer-api from 3.5.0 to 3.6.0 (#328) @dependabot[bot]
- Bump org.codehaus.mojo:mojo-parent from 91 to 92 (#325) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.105 to 9.0.106 in /src/it/mojo-1682 (#326) @dependabot[bot]
- Bump org.codehaus.mojo:mojo-parent from 87 to 91 (#324) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.104 to 9.0.105 in /src/it/mojo-1682 (#322) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.99 to 9.0.104 in /src/it/mojo-1682 (#319) @dependabot[bot]
1.10.0
🚀 New features and improvements
📦 Dependency updates
- Bump org.codehaus.mojo:mojo-parent from 86 to 87 (#316) @dependabot[bot]
- Bump commons-codec:commons-codec from 1.17.2 to 1.18.0 (#315) @dependabot[bot]
- Bump commons-codec:commons-codec from 1.17.1 to 1.17.2 (#314) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.98 to 9.0.99 in /src/it/mojo-1682 (#317) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 9.0.96 to 9.0.98 in /src/it/mojo-1682 (#313) @dependabot[bot]
- Bump org.apache.tomcat:tomcat-catalina from 7.0.104 to 9.0.96 in /src/it/mojo-1682 (#310) @dependabot[bot]
- Bump org.springframework:spring-core from 5.3.27 to 6.1.14 in /src/it/banduplicate-classes-wildcard-exclusion (#312) @dependabot[bot]
1.9.0
🚀 New features and improvements
- Recognize JDK 24 (#308) @wendigo
- Make parent level configurable for reference value in requirePropertyDiverges (#295) @piercemar
📦 Dependency updates
- Bump org.codehaus.mojo:mojo-parent from 85 to 86 (#307) @dependabot
- Bump org.codehaus.mojo:mojo-parent from 84 to 85 (#306) @dependabot
- Bump commons-codec:commons-codec from 1.17.0 to 1.17.1 (#304) @dependabot
- Bump org.codehaus.mojo:mojo-parent from 82 to 84 (#301) @dependabot
- Bump org.apache.maven.shared:maven-common-artifact-filters from 3.3.2 to 3.4.0 (#300) @dependabot
- Bump org.apache.maven.enforcer:enforcer-api from 3.4.1 to 3.5.0 (#299) @dependabot
- Bump org.codehaus.mojo:mojo-parent from 80 to 82 (#298) @dependabot
- Bump commons-codec:commons-codec from 1.16.1 to 1.17.0 (#296) @dependabot
👻 Maintenance
- Remove outdated FAQ site (#309) @slawekjaranowski
- Fix typo in site. (#294) @divyekapoor
1.8.0
🚀 New features and improvements
- Use debug log level for listing ignored items - fix #182 (#290) @slawekjaranowski
- Get rid of maven-dependency-tree use Resolver - fix #257 (#288) @slawekjaranowski
- Recognize JDK 22-23 class formats (#286) @wendigo
- Switch class bytecode hashing implementation from md5 to sha256 (#280) @slachiewicz
- Require Maven 3.6.3+ (#276) @slachiewicz
📦 Dependency updates
- Bump org.codehaus.mojo:mojo-parent from 78 to 80 (#284) @dependabot
- Bump apache/maven-gh-actions-shared from 3 to 4 (#285) @dependabot
- Bump commons-codec:commons-codec from 1.16.0 to 1.16.1 (#281) @dependabot
- Update mojo-parent to 78 (#278) @slachiewicz
- Require Maven 3.6.3+ (#276) @slachiewicz
- Bump commons-codec from 1.15 to 1.16.0 (#266) @dependabot
👻 Maintenance
- Cleanups ITs (#293) @slawekjaranowski
- Small cleanup of JDK versions enforcements (#289) @slachiewicz
- Fix #270 - requireEncoding documentation add missing parameters (#292) @slawekjaranowski
- Fix #271 - requireEncoding documentations (#291) @slawekjaranowski
- Allow build by Maven 4 (#287) @slawekjaranowski
- Bump org.springframework:spring-beans from 5.3.18 to 5.3.20 in /src/it/mojo-1731 (#277) @dependabot
- Update mojo-parent to 78 (#278) @slachiewicz
- Bump org.apache.tomcat:tomcat-catalina from 7.0.81 to 7.0.104 in /src/it/mojo-1682 (#272) @dependabot
1.7.0
💥 Breaking changes
- Move to new Enforcer API - require
m-enforcer-p 3.2.0(#263) @slawekjaranowski
🚀 New features and improvements
📦 Dependency updates
- Bump enforcer-api from 3.2.1 to 3.3.0 (#258) @dependabot
- Bump spring-core from 5.3.26 to 5.3.27 in /src/it/banduplicate-classes-wildcard-exclusion (#259) @dependabot
1.6.2
🐛 Bug Fixes
- Fix #231 - Use Resolver Api for resolving artifacts (#238) @slawekjaranowski
📦 Dependency updates
- Bump mojo-parent from 73 to 74 (#252) @dependabot
- Bump parent from 70 to 73 (#248) @slawekjaranowski
- Bump enforcer-api from 3.1.0 to 3.2.1 (#246) @dependabot
- Bump mockito-core from 4.10.0 to 4.11.0 (#242) @dependabot
- Bump mockito-core from 4.9.0 to 4.10.0 (#241) @dependabot
- Bump mockito-core from 4.8.1 to 4.9.0 (#236) @dependabot
- Bump maven-dependency-tree from 3.2.0 to 3.2.1 (#237) @dependabot
- Bump mockito-core from 4.8.0 to 4.8.1 (#235) @dependabot
- Bump maven-common-artifact-filters from 3.3.1 to 3.3.2 (#234) @dependabot
- Bump mockito-core from 4.7.0 to 4.8.0 (#233) @dependabot
- Bump maven-dependency-tree from 3.1.1 to 3.2.0 (#232) @dependabot
- Bump mojo-parent from 69 to 70 (#230) @dependabot
- Bump mockito-core from 4.6.1 to 4.7.0 (#229) @dependabot
👻 Maintenance
- Fix broken links in documentation (#255) @slawekjaranowski
- Use Maven 3.9.1 on GitHub (#254) @slawekjaranowski
- Bump spring-core from 5.3.20 to 5.3.26 in /src/it/banduplicate-classes-wildcard-exclusion (#253) @dependabot
- Enable checkstyle and spotless plugins (#250) @slawekjaranowski
- Use Maven 3.9.0 for build on GitHub (#249) @slawekjaranowski
- Configure m-compiler-p to use release flag for earlier JDKs (#239) @pzygielo
1.6.1
🐛 Bug Fixes
- Use all remote repositories for artifacts resolving (#226) @slawekjaranowski
📦 Dependency updates
- Bump maven-common-artifact-filters from 3.3.0 to 3.3.1 (#227) @dependabot
👻 Maintenance
- Execute m-invoker-p in run-its profile (#228) @slawekjaranowski