Skip to content

Commit 304be26

Browse files
authored
Merge pull request #389 from XeroAPI/PETOSS-516-Find-package-vulnerabilities-and-update-dependent-packages-for-Java
Petoss 516 find package vulnerabilities and update dependent packages for java
2 parents 09a5166 + 9481ae0 commit 304be26

File tree

2 files changed

+22
-24
lines changed

2 files changed

+22
-24
lines changed

.github/workflows/build-lint-test.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
distribution: 'temurin'
2121
java-version: '11'
2222
cache: maven
23-
gpg-passphrase: GPG_PASSPHRASE
2423

2524
- name: Import GPG Key
2625
run: |
@@ -33,5 +32,5 @@ jobs:
3332
export GPG_TTY=$(tty)
3433
mvn clean verify -DskipTests=true
3534
env:
36-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
35+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3736
working-directory: Xero-Java

pom.xml

+21-22
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<dependency>
4242
<groupId>com.auth0</groupId>
4343
<artifactId>java-jwt</artifactId>
44-
<version>3.19.4</version>
44+
<version>4.4.0</version>
4545
</dependency>
4646
<dependency>
4747
<groupId>com.auth0</groupId>
@@ -68,17 +68,17 @@
6868
<dependency>
6969
<groupId>commons-io</groupId>
7070
<artifactId>commons-io</artifactId>
71-
<version>2.7</version>
71+
<version>2.17.0</version>
7272
</dependency>
7373
<dependency>
7474
<groupId>jakarta.servlet</groupId>
7575
<artifactId>jakarta.servlet-api</artifactId>
76-
<version>6.0.0</version>
76+
<version>6.1.0</version>
7777
</dependency>
7878
<dependency>
7979
<groupId>org.mockito</groupId>
8080
<artifactId>mockito-core</artifactId>
81-
<version>5.10.0</version>
81+
<version>5.14.1</version>
8282
<scope>test</scope>
8383
</dependency>
8484

@@ -92,7 +92,7 @@
9292
<dependency>
9393
<groupId>org.slf4j</groupId>
9494
<artifactId>slf4j-api</artifactId>
95-
<version>1.7.30</version>
95+
<version>2.0.16</version>
9696
</dependency>
9797

9898
<!-- JSON processing: jackson -->
@@ -159,7 +159,7 @@
159159
<plugins>
160160
<plugin>
161161
<artifactId>maven-deploy-plugin</artifactId>
162-
<version>2.8.2</version>
162+
<version>3.1.3</version>
163163
</plugin>
164164
<plugin>
165165
<groupId>org.apache.maven.plugins</groupId>
@@ -173,7 +173,7 @@
173173
<plugin>
174174
<groupId>org.apache.maven.plugins</groupId>
175175
<artifactId>maven-source-plugin</artifactId>
176-
<version>3.0.1</version>
176+
<version>3.3.1</version>
177177
<executions>
178178
<execution>
179179
<id>attach-sources</id>
@@ -203,17 +203,17 @@
203203
<plugin>
204204
<groupId>org.apache.maven.plugins</groupId>
205205
<artifactId>maven-pmd-plugin</artifactId>
206-
<version>3.8</version>
206+
<version>3.25.0</version>
207207
</plugin>
208208
<plugin>
209209
<groupId>org.codehaus.mojo</groupId>
210210
<artifactId>findbugs-maven-plugin</artifactId>
211-
<version>3.0.4</version>
211+
<version>3.0.5</version>
212212
</plugin>
213213
<plugin>
214214
<groupId>org.apache.maven.plugins</groupId>
215215
<artifactId>maven-war-plugin</artifactId>
216-
<version>3.1.0</version>
216+
<version>3.4.0</version>
217217
<configuration>
218218
<webXml>example/src/main/webapp/WEB-INF/web.xml</webXml>
219219
<webResources>
@@ -232,7 +232,7 @@
232232
<plugin>
233233
<groupId>org.apache.maven.plugins</groupId>
234234
<artifactId>maven-javadoc-plugin</artifactId>
235-
<version>3.3.2</version>
235+
<version>3.10.1</version>
236236
<configuration>
237237
<source>8</source>
238238
</configuration>
@@ -248,7 +248,7 @@
248248
<plugin>
249249
<groupId>org.apache.maven.plugins</groupId>
250250
<artifactId>maven-gpg-plugin</artifactId>
251-
<version>1.6</version>
251+
<version>3.2.7</version>
252252
<executions>
253253
<execution>
254254
<id>sign-artifacts</id>
@@ -261,15 +261,14 @@
261261
<arg>--pinentry-mode</arg>
262262
<arg>loopback</arg>
263263
</gpgArguments>
264-
<passphraseServerId>gpg.passphrase</passphraseServerId>
265264
</configuration>
266265
</execution>
267266
</executions>
268267
</plugin>
269268
<plugin>
270269
<groupId>org.sonatype.plugins</groupId>
271270
<artifactId>nexus-staging-maven-plugin</artifactId>
272-
<version>1.6.13</version>
271+
<version>1.7.0</version>
273272
<extensions>true</extensions>
274273
<configuration>
275274
<serverId>ossrh</serverId>
@@ -280,7 +279,7 @@
280279
<plugin>
281280
<groupId>org.apache.maven.plugins</groupId>
282281
<artifactId>maven-surefire-plugin</artifactId>
283-
<version>3.0.0-M4</version>
282+
<version>3.5.0</version>
284283
<configuration>
285284
<argLine>-Duser.timezone=GMT-08:00</argLine>
286285
</configuration>
@@ -292,12 +291,12 @@
292291
<plugin>
293292
<groupId>org.apache.maven.plugins</groupId>
294293
<artifactId>maven-pmd-plugin</artifactId>
295-
<version>3.8</version>
294+
<version>3.25.0</version>
296295
</plugin>
297296
<plugin>
298297
<groupId>org.codehaus.mojo</groupId>
299298
<artifactId>findbugs-maven-plugin</artifactId>
300-
<version>3.0.4</version>
299+
<version>3.0.5</version>
301300
<configuration>
302301
<!-- Enables analysis which takes more memory but finds more bugs. If
303302
you run out of memory, changes the value of the effort element to 'low'. -->
@@ -316,12 +315,12 @@
316315
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
317316
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
318317
<java.version>11</java.version>
319-
<swagger-annotations-version>1.6.3</swagger-annotations-version>
320-
<google-api-client-version>2.3.0</google-api-client-version>
318+
<swagger-annotations-version>1.6.14</swagger-annotations-version>
319+
<google-api-client-version>2.7.0</google-api-client-version>
321320
<jersey-common-version>2.25.1</jersey-common-version>
322-
<jackson-version>2.16.1</jackson-version>
323-
<jackson-databind-version>2.16.1</jackson-databind-version>
324-
<jackson-threetenbp-version>2.12.5</jackson-threetenbp-version>
321+
<jackson-version>2.18.0</jackson-version>
322+
<jackson-databind-version>2.18.0</jackson-databind-version>
323+
<jackson-threetenbp-version>2.15.2</jackson-threetenbp-version>
325324
<junit-version>4.13.2</junit-version>
326325
<org-apache-httpcomponents>4.5.3</org-apache-httpcomponents>
327326
<jersey-version>3.1.5</jersey-version>

0 commit comments

Comments
 (0)