Skip to content

Commit 21f9760

Browse files
committed
KAFKA-19771 SpotBugs version update (Java 25 compatible version)
details: - spotbugs: 4.9.4 -->> 4.9.7 - spotbugs gradle plugin: 6.2.5 -->> 6.4.3 - spotbugs tasks are enabled for Java 25
1 parent d35324e commit 21f9760

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
- name: Setup Gradle
128128
uses: ./.github/actions/setup-gradle
129129
with:
130-
java-version: 17
130+
java-version: 25
131131
gradle-cache-read-only: ${{ !inputs.is-trunk }}
132132
gradle-cache-write-only: ${{ inputs.is-trunk }}
133133
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

build.gradle

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ plugins {
3737
id 'org.nosphere.apache.rat' version "0.8.1"
3838
id "io.swagger.core.v3.swagger-gradle-plugin" version "${swaggerVersion}"
3939

40-
id "com.github.spotbugs" version '6.2.5' apply false
40+
id "com.github.spotbugs" version '6.4.3' apply false
4141
id 'org.scoverage' version '8.1' apply false
4242
id 'com.gradleup.shadow' version '8.3.9' apply false
4343
id 'com.diffplug.spotless' version "8.0.0"
@@ -71,13 +71,6 @@ ext {
7171
"--add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED"
7272
)
7373

74-
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_25)) {
75-
// Spotbugs is not compatible with Java 25+ so Gradle related tasks are disabled
76-
// until version can be upgraded: https://github.com/spotbugs/spotbugs/issues/3564
77-
project.gradle.startParameter.excludedTaskNames.add("spotbugsMain")
78-
project.gradle.startParameter.excludedTaskNames.add("spotbugsTest")
79-
}
80-
8174
maxTestForks = project.hasProperty('maxParallelForks') ? maxParallelForks.toInteger() : Runtime.runtime.availableProcessors()
8275
maxScalacThreads = project.hasProperty('maxScalacThreads') ? maxScalacThreads.toInteger() :
8376
Math.min(Runtime.runtime.availableProcessors(), 8)

gradle/dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ versions += [
123123
scoverage: "2.3.0",
124124
slf4j: "1.7.36",
125125
snappy: "1.1.10.7",
126-
spotbugs: "4.9.4",
126+
spotbugs: "4.9.7",
127127
mockOAuth2Server: "2.2.1",
128128
zinc: "1.11.0",
129129
// When updating the zstd version, please do as well in docker/native/native-image-configs/resource-config.json

0 commit comments

Comments
 (0)