Skip to content

Commit

Permalink
update tools versions, apply checkstyle metadata guava collission fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xvik committed Jan 26, 2024
1 parent 8eca21c commit e730573
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
* Update spotbugs plugin to 5.2.5 (#94)
- Remove spotbugsShowStackTraces option because it's not used by spotbugs anymore
- Custom xsl file not used for html report - native html report generation used instead
* Update checkstyle 10.6.0 -> 10.12.7 (gradle metadata fix applied)
* Update spotbugs 4.7.3 -> 4.8.3
* Update pmd 6.54 -> 6.55 (java 20 support)
* Update codenarc 3.2.0 -> 3.4.0

### 4.9.0 (2023-02-18)
* Gradle 8 support (#77)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class QualityExtension {
sourceSets = [project.sourceSets.main] as Collection<SourceSet>
}

String checkstyleVersion = '10.6.0'
String pmdVersion = '6.54.0'
String spotbugsVersion = '4.7.3'
String codenarcVersion = '3.2.0'
String checkstyleVersion = '10.12.7'
String pmdVersion = '6.55.0'
String spotbugsVersion = '4.8.3'
String codenarcVersion = '3.4.0'

/**
* Sets AnimalSniffer version.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,19 @@ class QualityPlugin implements Plugin<Project> {
register,
CheckstylePlugin) {
project.configure(project) {
// required due to checkstyle update of gradle metadata causing now collission with google collections
// https://github.com/google/guava/releases/tag/v32.1.0 (https://github.com/gradle/gradle/issues/27035)
String guavaTarget = 'com.google.guava:guava:0'
configurations.checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability(
'com.google.collections:google-collections') {
select(guavaTarget)
}
resolutionStrategy.capabilitiesResolution.withCapability('com.google.guava:listenablefuture') {
select(guavaTarget)
}
}

checkstyle {
showViolations = false
toolVersion = extension.checkstyleVersion
Expand Down

0 comments on commit e730573

Please sign in to comment.