Skip to content

Commit ddd573b

Browse files
committedFeb 1, 2024
update docs
1 parent 9bdedbf commit ddd573b

10 files changed

+40
-17
lines changed
 

‎CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
### 5.0.0 (2024-02-01)
12
* (BREAKING) Drop gradle 5 and 6 support
23
* Update spotbugs plugin to 5.2.5 (#94)
34
- Remove spotbugsShowStackTraces option because it's not used by spotbugs anymore

‎LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2022 Vyacheslav Rusakov
3+
Copyright (c) 2015-2024 Vyacheslav Rusakov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Features:
2525
* Html and xml reports for all plugins (custom xsl used for findbugs html report because it can't generate both xml and html reports)
2626
* Grouping tasks to run registered quality plugins for exact source set (e.g. checkQualityMain)
2727

28+
NOTE: the plugin is **not compatible** with the gradle [configuration cache](https://docs.gradle.org/current/userguide/configuration_cache.html)
29+
2830
##### Summary
2931

3032
* Configuration: `quality`
@@ -46,7 +48,7 @@ NOTE: when updating plugin version in your project don't forget to call `clean`
4648

4749
```groovy
4850
plugins {
49-
id 'ru.vyarus.quality' version '4.9.0'
51+
id 'ru.vyarus.quality' version '5.0.0'
5052
}
5153
```
5254

@@ -59,7 +61,7 @@ buildscript {
5961
gradlePluginPortal()
6062
}
6163
dependencies {
62-
classpath 'ru.vyarus:gradle-quality-plugin:4.9.0'
64+
classpath 'ru.vyarus:gradle-quality-plugin:5.0.0'
6365
}
6466
}
6567
apply plugin: 'ru.vyarus.quality'
@@ -69,11 +71,12 @@ Minimal requirements: java 8, gradle 5.6
6971

7072
#### Compatibility
7173

72-
Plugin compiled for java 8, compatible with java 11
74+
Plugin compiled for java 8, compatible with java 11 (and above)
7375

7476
Gradle | Version
7577
--------|-------
76-
5.6-8 | 4.9.0
78+
7-8 | 5.0.0
79+
5.6-6 | [4.9.0](https://xvik.github.io/gradle-quality-plugin/4.9.0/)
7780
5.1 | [4.2.2](http://xvik.github.io/gradle-quality-plugin/4.2.2)
7881
4.1 | [3.4.0](http://xvik.github.io/gradle-quality-plugin/3.4.0)
7982
older | [2.4.0](http://xvik.github.io/gradle-quality-plugin/2.4.0)

‎build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ext {
2727
animalsnifferVersion = '1.7.1'
2828
cpdVersion = '3.3'
2929
spotbugsPluginVersion = '5.2.5'
30-
docVersion = '4.9.0'
30+
docVersion = '5.0.0'
3131
}
3232

3333
repositories { mavenLocal(); mavenCentral(); gradlePluginPortal() }

‎src/doc/docs/about/compatibility.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Plugin compiled for java 8, compatible with java 11
44

55
Gradle | Version
66
--------|-------
7-
5.6-8 | 4.9.0
7+
7-8 | 5.0.0
8+
5.6-6 | [4.9.0](https://xvik.github.io/gradle-quality-plugin/4.9.0/)
89
5.1 | [4.2.2](http://xvik.github.io/gradle-quality-plugin/4.2.2)
910
4.1 | [3.4.0](http://xvik.github.io/gradle-quality-plugin/3.4.0)
1011
older | [2.4.0](http://xvik.github.io/gradle-quality-plugin/2.4.0)

‎src/doc/docs/about/history.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
### [5.0.0](http://xvik.github.io/gradle-quality-plugin/5.0.0) (2024-02-01)
2+
* (BREAKING) Drop gradle 5 and 6 support
3+
* Update spotbugs plugin to 5.2.5 (#94)
4+
- Remove spotbugsShowStackTraces option because it's not used by spotbugs anymore
5+
- Custom xsl file is not used for html report - native html report generation used instead
6+
- Add spotbugs-annotations dependency automatically with compileOnly (to simplify @SuppressFBWarnings usage)
7+
Could be disabled with quality.spotbugsAnnotations = false configuration
8+
* Update checkstyle 10.6.0 -> 10.12.7 (gradle metadata fix applied)
9+
- Fix links to checkstyle site (site structure changed)
10+
* Update spotbugs 4.7.3 -> 4.8.3
11+
* Update pmd 6.54 -> 6.55 (java 20 support)
12+
* Update codenarc 3.2.0 -> 3.4.0
13+
* Remove deprecated gradle apis usage
14+
- The plugin is still NOT compatible with configuration cache
15+
116
### [4.9.0](http://xvik.github.io/gradle-quality-plugin/4.9.0) (2023-02-18)
217
* Gradle 8 support (#77)
318
* Update checkstyle 10.3.1 -> 10.6.0

‎src/doc/docs/about/license.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2022 Vyacheslav Rusakov
3+
Copyright (c) 2015-2024 Vyacheslav Rusakov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎src/doc/docs/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
* Html and xml reports for all plugins (custom xsl used for findbugs html report because it can't generate both xml and html reports)
2727
* Grouping tasks to run registered quality plugins for exact source set (e.g. checkQualityMain)
2828

29+
!!! note
30+
The plugin is **not compatible** with the gradle [configuration cache](https://docs.gradle.org/current/userguide/configuration_cache.html)
2931

3032
## How to use docs
3133

‎src/doc/docs/tool/spotbugs.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ it uses [efforts level](http://spotbugs.readthedocs.io/en/latest/effort.html). D
2323
Default settings (`max` effort and `medium` level) are perfect for most cases. Some checks were disabled in the default
2424
[filter file](https://github.com/xvik/gradle-quality-plugin/blob/master/src/main/resources/ru/vyarus/quality/config/spotbugs/exclude.xml)
2525

26-
!!! note
27-
Special [xsl file](https://github.com/xvik/gradle-quality-plugin/blob/master/src/main/resources/ru/vyarus/quality/config/spotbugs/html-report-style.xsl)
28-
used for manual html report generation. Spotbugs plugin can generate both xml and html reports, but
29-
this ability is not used (for more stable and legacy-compatible behaviour).
30-
3126
## Output
3227

3328
```
@@ -58,11 +53,11 @@ Tool config options with defaults:
5853
quality {
5954
spotbugsVersion = '{{ gradle.spotbugs }}'
6055
spotbugs = true // false to disable automatic plugin activation
61-
spotbugsShowStackTraces = false // changes default for spotbugs.showStackTraces
6256
spotbugsEffort = 'max' // min, less, more or max
6357
spotbugsLevel = 'medium' // low, medium, high
6458
spotbugsMaxRank = 20 // 1-4 scariest, 5-9 scary, 10-14 troubling, 15-20 of concern
6559
spotbugsMaxHeapSize = '1g'
60+
spotbugsAnnotations = true // false to not register spotbugs-annotations
6661
}
6762
```
6863

@@ -81,8 +76,8 @@ quality {
8176
To suppress violations you can use [filter file](http://spotbugs.readthedocs.io/en/latest/filter.html).
8277
In this case you need to override [default filter file](https://github.com/xvik/gradle-quality-plugin/blob/master/src/main/resources/ru/vyarus/quality/config/spotbugs/exclude.xml).
8378

84-
Or you can use annotations. SpotBugs use custom annotations and so you need to add
85-
`com.github.spotbugs:spotbugs-annotations:3.1.2` dependency (with provided scope if possible) and use:
79+
Plugin applies `com.github.spotbugs:spotbugs-annotations:{{ gradle.spotbugs }}` dependency automatically
80+
in `compileOnly` scope in order to use special suppressing annotation:
8681

8782
```java
8883
@SuppressFBWarnings("URF_UNREAD_FIELD")
@@ -92,6 +87,12 @@ Or you can use annotations. SpotBugs use custom annotations and so you need to a
9287
Spotbugs can't use default `@SuppressWarnings` annotation because it's a source annotation
9388
and not available in bytecode.
9489

90+
!!! note
91+
To disable automatic annotations dependency applying:
92+
```java
93+
quality.spotbugsAnnotations = false
94+
```
95+
9596
## Excludes
9697

9798
Spotbugs is the only quality tool which works on classes rather than on sources. By default,

‎src/doc/mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repo_url: http://github.com/xvik/gradle-quality-plugin
1111
edit_uri: edit/master/src/doc/docs/
1212

1313
#Copyright (shown at the footer)
14-
copyright: 'Copyright © 2015-2021 Vyacheslav Rusakov'
14+
copyright: 'Copyright © 2015-2024 Vyacheslav Rusakov'
1515

1616
plugins:
1717
- search

0 commit comments

Comments
 (0)
Please sign in to comment.