Skip to content

Releases: xvik/gradle-animalsniffer-plugin

2.0.0

25 Jan 11:38
Compare
Choose a tag to compare
  • (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

Detailed release notes with migration guide

1.7.2

18 Nov 15:02
Compare
Choose a tag to compare
  • Update animalsniffer 1.23 -> 1.24
  • Fix gradle 8.11 support (#100)
  • Fix file report disabling
  • Add AnimalSniffer task shortcut for simpler reports configuration

1.7.1

05 Jul 13:40
Compare
Choose a tag to compare
  • 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

09 Feb 15:11
Compare
Choose a tag to compare
  • 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

20 Aug 14:55
Compare
Choose a tag to compare
  • 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

1.5.4

06 Nov 14:52
Compare
Choose a tag to compare
  • Fix gradle 7 deprecation warnings

1.5.3

17 Feb 19:34
Compare
Choose a tag to compare
  • Update animalsniffer 1.18 -> 1.20 (asm 9; java 8 minimum)

1.5.2

04 Nov 22:27
Compare
Choose a tag to compare
  • Fix inner/anonymous classes check order: enclosing class must be processed first
    to correctly apply ignoring annotation (#25)
  • Fix source link recognition in IDEA console when multiple signatures used:
    changed "[Undefined reference (signature)]" to "[Undefined reference | signature]".

1.5.1

05 Jun 21:03
Compare
Choose a tag to compare
  • Update animalsniffer 1.16 -> 1.18 (support java > 8)

1.5.0

05 Feb 16:39
Compare
Choose a tag to compare
  • (breaking) Gradle 5 compatibility. Plugin now requires gradle 5.x due to gradle api changes (#12)