File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,5 +158,5 @@ jobs:
158158 mvn clean install -B -U -e -Pdeploying
159159 - name : Deploy snapshot artifacts
160160 run : |
161- echo "<settings><servers><server><id>ossrh </id><username>${{ secrets.CI_DEPLOY_USERNAME }}</username><password>${{ secrets.CI_DEPLOY_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
161+ echo "<settings><servers><server><id>central </id><username>${{ secrets.CI_DEPLOY_USERNAME }}</username><password>${{ secrets.CI_DEPLOY_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
162162 mvn deploy -Pdeploying -B -e -Dmaven.test.skip=true
Original file line number Diff line number Diff line change 8181 </pluginRepository >
8282 </pluginRepositories >
8383
84- <!--
85- Deploys to OSSRH/Maven central
86- We don't need to deploy to Bintray, as JCenter will eventually proxy artifacts upload in Maven
87- central. See Sonatype requirements at http://central.sonatype.org/pages/apache-maven.html
88- -->
89- <distributionManagement >
90- <snapshotRepository >
91- <id >central</id >
92- <url >https://central.sonatype.com/repository/maven-snapshots</url >
93- </snapshotRepository >
94- <repository >
95- <id >ossrh</id >
96- <url >
97- https://oss.sonatype.org/service/local/staging/deployByRepositoryId/${stagingRepositoryId} /
98- </url >
99- </repository >
100- </distributionManagement >
101-
10284 <dependencyManagement >
10385 <dependencies >
10486 <dependency >
512494 </execution >
513495 </executions >
514496 </plugin >
515- <!-- GPG signed components: http://central.sonatype.org/pages/apache-maven.html#gpg-signed-components -->
516497 <plugin >
517498 <groupId >org.apache.maven.plugins</groupId >
518499 <artifactId >maven-gpg-plugin</artifactId >
607588 </java >
608589 </configuration >
609590 </plugin >
591+ <plugin >
592+ <groupId >org.sonatype.central</groupId >
593+ <artifactId >central-publishing-maven-plugin</artifactId >
594+ <version >0.9.0</version >
595+ <extensions >true</extensions >
596+ <configuration >
597+ <publishingServerId >central</publishingServerId >
598+ </configuration >
599+ </plugin >
610600 </plugins >
601+
611602 <pluginManagement >
612603 <plugins >
613604 <plugin >
You can’t perform that action at this time.
0 commit comments