Releases: xvik/gradle-animalsniffer-plugin
Releases · xvik/gradle-animalsniffer-plugin
2.0.0
- (breaking) Drop gradle 5 and 6 support
- (breaking) Fail check when no signatures declared (required to catch early configuration errors)
- Now additional configuration required when only build signature tasks used (to disable check)
- Add failWithoutSignatures option (true by default). Set to false for legacy behavior
- Add android projects support (activates for android library and application plugins
and use variant components (debug, release and test) instead of source sets). - Add kotlin multiplatform projects support (tasks created for each platform compilation, except metadata (common))
- Improve debug:
- Add printAnimalsnifferSourceInfo task for debug purposes (shows registered source sets, tasks, plugins)
- Add printAnimalsnifferTasks task to print info about all registered tasks
- Put all animalsniffer tasks under 'animalsniffer' group
- Rename signature cache tasks to differentiate with check tasks (cache tasks starts with 'cache' keyword)
- change cache tasks output path: /animalsniffer/cache/[checkTargetName]/[checkTaskName]Cache.sig
- Change default tasks selection (tasks applied as dependency to the check task):
- Add checkTestSources = false option to avoid tests sources checks by default
- Add defaultTargets = [] (strings) option to limit default animalsniffer tasks.
- Legacy sourceSets option still supported, but checkTestSources and defaultTargets override it
- Add CSV report: used internally for building console and text reports, but could be
used by an external tool to collect errors - Change field references in reports (when animalsniffer identifies field):
before was "fieldName field", now only "#fieldName" - Add new properties to AnimalSniffer task to simplify detailed configuration:
- targetType: type of task (SourceSet, MultiplatformTarget, AndroidVariant)
- targetName: name of target (used in animalsniffer task name)
- Call animalsniffer directly instead of ant tasks
- Configuration cache compatibility
1.7.2
1.7.1
- Update animalsniffer 1.22 -> 1.23
- Plugin requires now JavaBasePlugin instead of JavaPlugin.
Required for kotlin multiplatform 1.9.20 activating only base plugin with jvm().withJava() (#84)
NOTE: animalsniffer 1.23 reports problems on fields without line number (but with field name),
Plugin output would contain line 1 (default for not defined line)
1.7.0
- Support animalsniffer messages for field violations (#25)
- Always put line number in file report, even if it wasn't declared (consistency with console reporting)
- Fix gradle deprecation warning (#67)
- Skip check task when no signatures configured or no files to check (to differentiate with success execution
and easily spot configuration problems) - Add custom task shortcuts: allow custom build signature and signature info tasks declaration without task package
- Add debug output for check and build tasks (to simplify configuration debugging)
- animalsniffer.debug = true for check tasks
- animalsnifferSignature.debug = true for signature build task
1.6.0
- Update animalsniffer 1.20 -> 1.22 (java 9 support)
- Fix configuration cache support for check tasks (#26)
- Type of sourcesDirs property of AnimalSniffer tasks changed, but it should not be a problem
- Fix formatting messages without source line number
- Remove duplicate animalsniffer messages without line number