Skip to content

Commit d5df999

Browse files
authored
HBASE-25604 Upgrade spotbugs to 4.x (#2986)
Signed-off-by: XinSun <[email protected]>
1 parent 34bd1bd commit d5df999

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

dev-support/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
7373
#
7474

7575
FROM BASE_IMAGE AS SPOTBUGS_DOWNLOAD_IMAGE
76-
ENV SPOTBUGS_VERSION '3.1.12'
76+
ENV SPOTBUGS_VERSION '4.2.1'
7777
ENV SPOTBUGS_URL "https://repo.maven.apache.org/maven2/com/github/spotbugs/spotbugs/${SPOTBUGS_VERSION}/spotbugs-${SPOTBUGS_VERSION}.tgz"
78-
ENV SPOTBUGS_SHA256 '9c475d6c7096ed7af783e04dc2db40462145291de75a80029391600b6eb2d401'
78+
ENV SPOTBUGS_SHA256 '4d6f5f68da8ddf037bc82f0146b6e6caff4fc5872b9cd511c1e6136c680093a4'
7979
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
8080
RUN curl --location --fail --silent --show-error --output /tmp/spotbugs.tgz "${SPOTBUGS_URL}" && \
8181
echo "${SPOTBUGS_SHA256} */tmp/spotbugs.tgz" | sha256sum -c -

pom.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,14 @@
827827
<xmlOutput>true</xmlOutput>
828828
<effort>Max</effort>
829829
</configuration>
830+
<dependencies>
831+
<!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs -->
832+
<dependency>
833+
<groupId>com.github.spotbugs</groupId>
834+
<artifactId>spotbugs</artifactId>
835+
<version>${spotbugs.version}</version>
836+
</dependency>
837+
</dependencies>
830838
</plugin>
831839
<plugin>
832840
<groupId>org.codehaus.mojo</groupId>
@@ -1685,8 +1693,8 @@
16851693
<maven.project.info.report.version>2.9</maven.project.info.report.version>
16861694
<os.maven.version>1.5.0.Final</os.maven.version>
16871695
<findbugs-annotations.version>1.3.9-1</findbugs-annotations.version>
1688-
<spotbugs.version>3.1.12</spotbugs.version>
1689-
<spotbugs.maven.version>3.1.12.2</spotbugs.maven.version>
1696+
<spotbugs.version>4.2.1</spotbugs.version>
1697+
<spotbugs.maven.version>4.2.0</spotbugs.maven.version>
16901698
<surefire.version>3.0.0-M4</surefire.version>
16911699
<wagon.ssh.version>2.12</wagon.ssh.version>
16921700
<xml.maven.version>1.0.1</xml.maven.version>

0 commit comments

Comments
 (0)