Skip to content

Commit 42da2f8

Browse files
committed
Updated dependencies to align with Spring Boot 3.2.5
1 parent 7cf0ae6 commit 42da2f8

File tree

6 files changed

+47
-18
lines changed

6 files changed

+47
-18
lines changed

.github/maven-settings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
</activation>
2424
<properties>
2525
<gpg.executable>gpg</gpg.executable>
26-
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
2726
</properties>
2827
</profile>
2928
</profiles>

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
persist-credentials: false
1414

1515
- name: Cache local Maven repository
16-
uses: actions/cache@v3
16+
uses: actions/cache@v4
1717
with:
1818
path: ~/.m2/repository
1919
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -68,7 +68,7 @@ jobs:
6868
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
6969
GIT_HUB_USERNAME: ${{ secrets.GIT_HUB_USERNAME }}
7070
GIT_HUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }}
71-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
71+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
7272

7373
- name: Create GitHub release
7474
id: create_release

.github/workflows/owasp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
shell: bash
1717

1818
- name: Restore cached Maven dependencies
19-
uses: actions/cache/restore@v3
19+
uses: actions/cache/restore@v4
2020
with:
2121
path: ~/.m2/repository
2222
# Using datetime in cache key as OWASP database may change, without the pom changing
@@ -36,7 +36,7 @@ jobs:
3636

3737
# Want the Maven dependencies to be cached even if the build fails as we want the OWASP database cached, regardless of whether vulnerabilities are found or not
3838
- name: Cache Maven dependencies
39-
uses: actions/cache/save@v3
39+
uses: actions/cache/save@v4
4040
if: always()
4141
with:
4242
path: ~/.m2/repository
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Dependencies
2+
3+
* Aligned dependencies with [Spring Boot 3.2.5](https://github.com/spring-projects/spring-boot/releases/tag/v3.2.5)

pom.xml

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,38 @@
4040
<maven.min.version>3.9.4</maven.min.version>
4141

4242
<!-- Dependency versions -->
43-
<spring-boot.version>3.2.4</spring-boot.version>
43+
<spring-boot.version>3.2.5</spring-boot.version>
4444
<spt-cid.version>2.0.14</spt-cid.version>
45-
<spt-cid-web.version>2.0.15</spt-cid-web.version>
45+
<spt-cid-web.version>2.0.16</spt-cid-web.version>
4646

4747
<!-- Plugin versions -->
4848
<build-helper-maven-plugin.version>3.5.0</build-helper-maven-plugin.version>
4949
<checkstyle-maven-plugin.version>3.3.1</checkstyle-maven-plugin.version>
50-
<dependency-check-maven.version>9.0.10</dependency-check-maven.version>
51-
<jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>
50+
<dependency-check-maven.version>9.1.0</dependency-check-maven.version>
51+
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
5252
<license-maven-plugin.version>2.4.0</license-maven-plugin.version>
5353
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
5454
<maven-dependency-plugin.version>3.6.1</maven-dependency-plugin.version>
5555
<maven-enforcer-plugin.version>3.4.1</maven-enforcer-plugin.version>
56-
<maven-gpg-plugin.version>3.2.1</maven-gpg-plugin.version>
56+
<maven-gpg-plugin.version>3.2.4</maven-gpg-plugin.version>
5757
<maven-javadoc-plugin.version>3.6.3</maven-javadoc-plugin.version>
5858
<maven-jxr-plugin.version>3.3.2</maven-jxr-plugin.version>
59-
<maven-pmd-plugin.version>3.21.2</maven-pmd-plugin.version>
59+
<maven-pmd-plugin.version>3.22.0</maven-pmd-plugin.version>
6060
<maven-release-plugin.version>3.0.1</maven-release-plugin.version>
61-
<maven-scm-plugin.version>2.0.1</maven-scm-plugin.version>
62-
<maven-source-plugin.version>3.3.0</maven-source-plugin.version>
61+
<maven-scm-plugin.version>2.1.0</maven-scm-plugin.version>
62+
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
6363
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
6464
<nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version>
65-
<pitest-maven.version>1.15.8</pitest-maven.version>
66-
<spotbugs.version>4.8.3.1</spotbugs.version>
65+
<pitest-maven.version>1.16.0</pitest-maven.version>
66+
<spotbugs.version>4.8.4.0</spotbugs.version>
6767
<versions-maven-plugin.version>2.16.2</versions-maven-plugin.version>
6868

6969
<!-- Plugin dependencies -->
70-
<checkstyle.version>10.14.2</checkstyle.version>
70+
<checkstyle.version>10.15.0</checkstyle.version>
7171
<findbugs-slf4j-bug-pattern.version>1.5.0</findbugs-slf4j-bug-pattern.version>
7272
<findbugs-sec-bug-pattern.version>1.12.0</findbugs-sec-bug-pattern.version>
7373
<pitest-junit5-plugin.version>1.2.1</pitest-junit5-plugin.version>
74+
<pmd.version>7.1.0</pmd.version>
7475
</properties>
7576

7677
<dependencyManagement>
@@ -186,6 +187,28 @@
186187
<plugin>
187188
<artifactId>maven-pmd-plugin</artifactId>
188189
<version>${maven-pmd-plugin.version}</version>
190+
<dependencies>
191+
<dependency>
192+
<groupId>net.sourceforge.pmd</groupId>
193+
<artifactId>pmd-core</artifactId>
194+
<version>${pmd.version}</version>
195+
</dependency>
196+
<dependency>
197+
<groupId>net.sourceforge.pmd</groupId>
198+
<artifactId>pmd-java</artifactId>
199+
<version>${pmd.version}</version>
200+
</dependency>
201+
<dependency>
202+
<groupId>net.sourceforge.pmd</groupId>
203+
<artifactId>pmd-javascript</artifactId>
204+
<version>${pmd.version}</version>
205+
</dependency>
206+
<dependency>
207+
<groupId>net.sourceforge.pmd</groupId>
208+
<artifactId>pmd-jsp</artifactId>
209+
<version>${pmd.version}</version>
210+
</dependency>
211+
</dependencies>
189212
</plugin>
190213
<plugin>
191214
<artifactId>maven-release-plugin</artifactId>

spt-development-cid-web-spring-boot-autoconfigure/config/pmd/rulesets/spt-default-rules.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
<rule ref="category/java/bestpractices.xml/DoubleBraceInitialization" />
2020
<rule ref="category/java/bestpractices.xml/ForLoopCanBeForeach" />
2121
<rule ref="category/java/bestpractices.xml/LiteralsFirstInComparisons" />
22-
<rule ref="category/java/bestpractices.xml/LooseCoupling" />
22+
<rule ref="category/java/bestpractices.xml/LooseCoupling">
23+
<properties>
24+
<property name="allowedTypes" value="org.springframework.core.annotation.AnnotationAttributes" />
25+
</properties>
26+
</rule>
2327
<rule ref="category/java/bestpractices.xml/MethodReturnsInternalArray" />
2428
<rule ref="category/java/bestpractices.xml/MissingOverride" />
2529
<rule ref="category/java/bestpractices.xml/OneDeclarationPerLine" />
@@ -101,7 +105,7 @@
101105
<rule ref="category/java/design.xml/SwitchDensity" />
102106
<rule ref="category/java/design.xml/UseUtilityClass">
103107
<properties>
104-
<property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration/preceding-sibling::Annotation/MarkerAnnotation/Name[@Image='SpringBootApplication']" />
108+
<property name="violationSuppressXPath" value=".[pmd-java:hasAnnotation('org.springframework.boot.autoconfigure.SpringBootApplication')]" />
105109
</properties>
106110
</rule>
107111
<rule ref="category/java/design.xml/UselessOverridingMethod" />

0 commit comments

Comments
 (0)