Releases: skuzzle/restrict-imports-enforcer-rule
Releases · skuzzle/restrict-imports-enforcer-rule
2.0.0
This is a new major release. Upgrading the version might break your build if you don't adjust your configuration
according to the changes mentioned below. Please carefully read the changes section when you are upgrading from 1.x.y
.
Changes
(Note: Review carefully, as those might break your existing build when updating from version 1.x.y
)
- #28 Test code is always analyzed unless
<includeTestCode>
option is configuredfalse
. - #49 Simplify and formalize "pattern specificity".
- #53 Package patterns now implicitly match static imports.
- Declaration variant no longer supported:
<restrictImports implementation="de.skuzzle.enforcer.restrictimports.RestrictImports">
(deprecated since0.12.0
). - Declaration variant no longer supported:
<restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
(deprecated since1.4.0
).
Features
- #50 Introduce
-Drestrictimports.skip
and-Drestrictimports.failBuild
command line options. - Added
<parallel>
(-Drestrictimports.parallel
) option to run the whole analysis in parallel (Experimental feature, feedback welcome). - Improve formatting of the analysis result.
Bug fixes
- #52 Whitespaces in plugin configuration and source files are handled more gracefully.
Maven Central coordinates for this release:
<dependency>
<groupId>de.skuzzle.enforcer</groupId>
<artifactId>restrict-imports-enforcer-rule</artifactId>
<version>2.0.0</version>
</dependency>
1.4.0
Features
- Allow simple declaration as rule via
<RestrictImports>
instead of requiring fully qualified class name. - Build and test against
enforcer-api:3.0.0
(coming from3.0.0-M1
)
Deprecations
- Deprecated full qualified declaration as
<restrictImports implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
in favor of just<RestrictImports>
. Using the deprecated declaration will print a warning during the build. The
deprecated declaration format will be removed with the next major release, that is2.x.x
Otherwise Noteworthy
- #38 Removed Guava dependency altogether.
- Removed the changelog from the main README. Notable changes for each release are now attached directly to each GitHub
release. Existing release notes up to version1.3.0
can still be found inCHANGELOG_LEGACY.md
file.
Maven Central coordinates for this release:
<dependency>
<groupId>de.skuzzle.enforcer</groupId>
<artifactId>restrict-imports-enforcer-rule</artifactId>
<version>1.4.0</version>
</dependency>
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
0.18.0
Changelog
- Fix possible file resource leak while iterating source files
- Remove
sourceFileCharset
- Soft-Remove
commentLineBufferSize
- #34: Recognize multiple import statements on same line in java sources
- #33: Possibility to forbid wildcard imports
- #31: Results show whether a match occurred in a test file
- #30: Separate import parsing and banned import analysis