Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2c7c36c

Browse files
committed
CI: migrate to Maven Central Publishing Portal (DE-1050)
1 parent b7ff768 commit 2c7c36c

File tree

3 files changed

+15
-60
lines changed

3 files changed

+15
-60
lines changed

‎.circleci/config.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,6 @@ commands:
109109
- run:
110110
name: Deploy to Apache Maven Central
111111
command: mvn -s .circleci/maven-release-settings.xml -Dmaven.test.skip deploy
112-
release:
113-
steps:
114-
- run:
115-
name: Release to Apache Maven Central
116-
command: mvn -s .circleci/maven-release-settings.xml -Dmaven.test.skip nexus-staging:release
117-
environment:
118-
MAVEN_OPTS: "--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
119112

120113
executors:
121114
j17:
@@ -435,18 +428,6 @@ jobs:
435428
- deploy
436429
- store_cache
437430

438-
release:
439-
executor: 'j17'
440-
steps:
441-
- timeout:
442-
duration: '30m'
443-
- checkout
444-
- load_cache
445-
- config_gpg
446-
- deploy
447-
- release
448-
- store_cache
449-
450431
workflows:
451432
test-adb-version:
452433
when:
@@ -654,13 +635,3 @@ workflows:
654635
only: /^deploy.*/
655636
branches:
656637
ignore: /.*/
657-
658-
release:
659-
jobs:
660-
- release:
661-
context: java-release
662-
filters:
663-
tags:
664-
only: /^release.*/
665-
branches:
666-
ignore: /.*/

‎.circleci/maven-release-settings.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<profiles>
55
<profile>
6-
<id>ossrh</id>
6+
<id>central</id>
77
<activation>
88
<activeByDefault>true</activeByDefault>
99
</activation>
@@ -16,9 +16,9 @@
1616

1717
<servers>
1818
<server>
19-
<id>ossrh</id>
20-
<username>${env.OSSRH_USERNAME}</username>
21-
<password>${env.OSSRH_PASSWORD}</password>
19+
<id>central</id>
20+
<username>${env.CENTRAL_USERNAME}</username>
21+
<password>${env.CENTRAL_PASSWORD}</password>
2222
</server>
2323
</servers>
2424

‎pom.xml

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -251,30 +251,25 @@
251251
</configuration>
252252
</plugin>
253253
<plugin>
254-
<groupId>org.apache.maven.plugins</groupId>
255-
<artifactId>maven-deploy-plugin</artifactId>
256-
<version>3.1.4</version>
257-
<configuration>
258-
<retryFailedDeploymentCount>10</retryFailedDeploymentCount>
259-
</configuration>
260-
</plugin>
261-
<plugin>
262-
<groupId>org.sonatype.plugins</groupId>
263-
<artifactId>nexus-staging-maven-plugin</artifactId>
264-
<version>1.7.0</version>
254+
<groupId>org.sonatype.central</groupId>
255+
<artifactId>central-publishing-maven-plugin</artifactId>
256+
<version>0.8.0</version>
265257
<extensions>true</extensions>
266258
<configuration>
267-
<serverId>ossrh</serverId>
268-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
269-
<stagingProfileId>84aff6e87e214c</stagingProfileId>
270-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
271-
<skipNexusStagingDeployMojo>${maven.deploy.skip}</skipNexusStagingDeployMojo>
259+
<publishingServerId>central</publishingServerId>
260+
<autoPublish>true</autoPublish>
261+
<waitUntil>published</waitUntil>
272262
</configuration>
273263
</plugin>
274264
</plugins>
275265

276266
<pluginManagement>
277267
<plugins>
268+
<plugin>
269+
<groupId>org.apache.maven.plugins</groupId>
270+
<artifactId>maven-deploy-plugin</artifactId>
271+
<version>3.1.4</version>
272+
</plugin>
278273
<plugin>
279274
<groupId>org.apache.maven.plugins</groupId>
280275
<artifactId>maven-compiler-plugin</artifactId>
@@ -367,17 +362,6 @@
367362
</pluginManagement>
368363
</build>
369364

370-
<distributionManagement>
371-
<snapshotRepository>
372-
<id>ossrh</id>
373-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
374-
</snapshotRepository>
375-
<repository>
376-
<id>ossrh</id>
377-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
378-
</repository>
379-
</distributionManagement>
380-
381365
<repositories>
382366
<repository>
383367
<id>oss.sonatype.org-snapshot</id>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /