Skip to content

Commit

Permalink
upgrading to java 21
Browse files Browse the repository at this point in the history
excluding some spotbugs for short term
  • Loading branch information
MikeRocke committed Dec 1, 2024
1 parent 909dd45 commit 2a19fea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
21 changes: 13 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "java"
id "com.github.spotbugs" version "4.7.3" apply false
id "org.owasp.dependencycheck" version "8.1.2" apply false
id "com.github.spotbugs" version "6.0.26" apply false
id "org.owasp.dependencycheck" version "11.1.0" apply false
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
}

Expand All @@ -24,8 +24,11 @@ subprojects {
apply plugin: 'com.github.spotbugs'
apply plugin: 'org.owasp.dependencycheck'

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

repositories {
mavenCentral()
Expand All @@ -40,8 +43,8 @@ subprojects {
'org.junit.jupiter:junit-jupiter-params:5.9.2',
'org.junit.jupiter:junit-jupiter-engine:5.9.2',
'com.google.guava:guava:31.1-jre',
'org.mockito:mockito-core:5.1.1',
'org.mockito:mockito-junit-jupiter:5.1.1',
'org.mockito:mockito-core:5.14.2',
'org.mockito:mockito-junit-jupiter:5.14.2',
'org.assertj:assertj-core:3.24.2',
'org.apache.commons:commons-lang3:3.12.0'
}
Expand All @@ -67,7 +70,9 @@ subprojects {
}

spotbugs {
toolVersion = '4.2.3'
toolVersion = '4.8.6'
excludeFilter = file("${rootDir}/exclude.xml")
reportsDir = file("${rootDir}/spotbugs")
}

build {
Expand All @@ -76,7 +81,7 @@ subprojects {

checkstyle {
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
toolVersion = "8.41.1"
toolVersion = "10.20.2"
}

jar {
Expand Down
6 changes: 6 additions & 0 deletions exclude.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<FindBugsFilter>
<Match>
<Bug code="EI,EI2,MS"/>
</Match>
</FindBugsFilter>

0 comments on commit 2a19fea

Please sign in to comment.