Skip to content

Commit a5b8186

Browse files
authored
fix: Update java dep which blocking release (#5903)
update java dep which blocking release Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
1 parent 4c66e76 commit a5b8186

File tree

4 files changed

+16
-31
lines changed

4 files changed

+16
-31
lines changed

java/datatypes/pom.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,8 @@
7676
</executions>
7777
</plugin>
7878
<plugin>
79-
<groupId>org.sonatype.plugins</groupId>
80-
<artifactId>nexus-staging-maven-plugin</artifactId>
81-
<configuration>
82-
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
83-
</configuration>
79+
<groupId>org.sonatype.central</groupId>
80+
<artifactId>central-publishing-maven-plugin</artifactId>
8481
</plugin>
8582
</plugins>
8683
</build>

java/pom.xml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
<protobuf.version>3.25.5</protobuf.version>
4747
<com.google.cloud.version>1.111.1</com.google.cloud.version>
4848
<io.prometheus.version>0.8.0</io.prometheus.version>
49-
<byte-buddy.version>1.9.10</byte-buddy.version>
49+
<byte-buddy.version>1.14.11</byte-buddy.version>
5050
<hamcrest.version>1.3</hamcrest.version>
51-
<mockito.version>2.28.2</mockito.version>
51+
<mockito.version>5.8.0</mockito.version>
5252
<!-- OpenCensus is used in grpc and Google's HTTP client libs in Cloud SDKs -->
5353
<opencensus.version>0.26.0</opencensus.version>
5454
<!-- Force log4j2 to 2.11+ to support objectMessageAsJsonObject -->
@@ -439,18 +439,15 @@
439439
</additionalClasspathElements>
440440
</configuration>
441441
</plugin>
442-
<!-- nexus-staging-maven-plugin configures Maven to deploy to OSSRH Nexus Repository Manager -->
442+
<!-- central-publishing-maven-plugin configures Maven to deploy to Sonatype Central Portal -->
443443
<plugin>
444-
<groupId>org.sonatype.plugins</groupId>
445-
<artifactId>nexus-staging-maven-plugin</artifactId>
446-
<version>1.6.8</version>
444+
<groupId>org.sonatype.central</groupId>
445+
<artifactId>central-publishing-maven-plugin</artifactId>
446+
<version>0.6.0</version>
447447
<extensions>true</extensions>
448448
<configuration>
449-
<serverId>ossrh</serverId>
450-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
451-
<!-- autoReleaseAfterClose is true as the release should be automated via continuous integration -->
452-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
453-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
449+
<publishingServerId>central</publishingServerId>
450+
<autoPublish>true</autoPublish>
454451
</configuration>
455452
</plugin>
456453
<!--

java/serving-client/pom.xml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<properties>
1919
<!-- TODO: Standardize other modules on JUnit 5 and move this to parent -->
2020
<junit.version>5.5.2</junit.version>
21-
<mockito.version>2.28.2</mockito.version>
21+
<mockito.version>5.8.0</mockito.version>
2222
<opentracing.version>0.33.0</opentracing.version>
2323
</properties>
2424

@@ -125,12 +125,6 @@
125125
<version>${mockito.version}</version>
126126
<scope>test</scope>
127127
</dependency>
128-
<dependency>
129-
<groupId>org.mockito</groupId>
130-
<artifactId>mockito-inline</artifactId>
131-
<version>${mockito.version}</version>
132-
<scope>test</scope>
133-
</dependency>
134128
</dependencies>
135129

136130
<build>
@@ -148,11 +142,8 @@
148142
<artifactId>jacoco-maven-plugin</artifactId>
149143
</plugin>
150144
<plugin>
151-
<groupId>org.sonatype.plugins</groupId>
152-
<artifactId>nexus-staging-maven-plugin</artifactId>
153-
<configuration>
154-
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
155-
</configuration>
145+
<groupId>org.sonatype.central</groupId>
146+
<artifactId>central-publishing-maven-plugin</artifactId>
156147
</plugin>
157148
</plugins>
158149
</build>

java/serving/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,10 @@
414414
</configuration>
415415
</plugin>
416416
<plugin>
417-
<groupId>org.sonatype.plugins</groupId>
418-
<artifactId>nexus-staging-maven-plugin</artifactId>
417+
<groupId>org.sonatype.central</groupId>
418+
<artifactId>central-publishing-maven-plugin</artifactId>
419419
<configuration>
420-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
420+
<skipPublishing>true</skipPublishing>
421421
</configuration>
422422
</plugin>
423423
</plugins>

0 commit comments

Comments
 (0)