Skip to content

Commit 4354fcd

Browse files
committed
Switch from OSSRH to new central
1 parent 9497e29 commit 4354fcd

File tree

4 files changed

+23
-43
lines changed

4 files changed

+23
-43
lines changed

.github/workflows/maven-deploy-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- name: Deploy to JavaWebStack Repository
2121
run: mvn deploy -DbuildVersion=${{ github.event.release.tag_name }} -s build/settings.xml
2222
env:
23-
DEPLOYMENT_USERNAME: ${{ secrets.DEPLOYMENT_USERNAME }}
24-
DEPLOYMENT_PASSWORD: ${{ secrets.DEPLOYMENT_PASSWORD }}
23+
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
24+
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
2525
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
26-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

.github/workflows/maven-deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- name: Deploy to JavaWebStack Repository
2222
run: mvn deploy -s build/settings.xml
2323
env:
24-
DEPLOYMENT_USERNAME: ${{ secrets.DEPLOYMENT_USERNAME }}
25-
DEPLOYMENT_PASSWORD: ${{ secrets.DEPLOYMENT_PASSWORD }}
24+
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
25+
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
2626
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
27-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

build/settings.xml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,9 @@
55
>
66
<servers>
77
<server>
8-
<id>javawebstack-snapshots</id>
9-
<username>${env.DEPLOYMENT_USERNAME}</username>
10-
<password>${env.DEPLOYMENT_PASSWORD}</password>
11-
</server>
12-
<server>
13-
<id>javawebstack-releases</id>
14-
<username>${env.DEPLOYMENT_USERNAME}</username>
15-
<password>${env.DEPLOYMENT_PASSWORD}</password>
16-
</server>
17-
<server>
18-
<id>ossrh</id>
19-
<username>JavaWebStack</username>
20-
<password>${env.OSSRH_PASSWORD}</password>
8+
<id>central</id>
9+
<username>${env.CENTRAL_USERNAME}</username>
10+
<password>${env.CENTRAL_PASSWORD}</password>
2111
</server>
2212
<server>
2313
<id>gpg</id>

pom.xml

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848

4949
<repositories>
5050
<repository>
51-
<id>ossrh</id>
52-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
51+
<id>central-snapshots</id>
52+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
5353
</repository>
5454
</repositories>
5555

@@ -62,12 +62,12 @@
6262
<dependency>
6363
<groupId>org.javawebstack</groupId>
6464
<artifactId>validator</artifactId>
65-
<version>1.0.2</version>
65+
<version>1.0.3-SNAPSHOT</version>
6666
</dependency>
6767
<dependency>
6868
<groupId>org.javawebstack</groupId>
6969
<artifactId>abstract-data</artifactId>
70-
<version>1.0.6</version>
70+
<version>1.0.7-SNAPSHOT</version>
7171
</dependency>
7272
<dependency>
7373
<groupId>org.reflections</groupId>
@@ -83,24 +83,20 @@
8383

8484
<build>
8585
<plugins>
86+
<plugin>
87+
<groupId>org.sonatype.central</groupId>
88+
<artifactId>central-publishing-maven-plugin</artifactId>
89+
<version>0.9.0</version>
90+
<extensions>true</extensions>
91+
<configuration>
92+
<publishingServerId>central</publishingServerId>
93+
</configuration>
94+
</plugin>
8695
<plugin>
8796
<groupId>org.apache.maven.plugins</groupId>
8897
<artifactId>maven-surefire-plugin</artifactId>
8998
<version>2.22.1</version>
9099
</plugin>
91-
<plugin>
92-
<artifactId>maven-deploy-plugin</artifactId>
93-
<version>3.0.0-M1</version>
94-
<executions>
95-
<execution>
96-
<id>default-deploy</id>
97-
<phase>deploy</phase>
98-
<goals>
99-
<goal>deploy</goal>
100-
</goals>
101-
</execution>
102-
</executions>
103-
</plugin>
104100
<plugin>
105101
<groupId>org.apache.maven.plugins</groupId>
106102
<artifactId>maven-source-plugin</artifactId>
@@ -139,7 +135,7 @@
139135
<goal>sign</goal>
140136
</goals>
141137
<configuration>
142-
<keyname>A313520526A8DFE1C2A30399C35A3D43C557B112</keyname>
138+
<keyname>EC9CCFF8901F0AA22191DCEDD619376246C066D0</keyname>
143139
<passphraseServerId>gpg</passphraseServerId>
144140
<gpgArguments>
145141
<arg>--no-tty</arg>
@@ -155,13 +151,9 @@
155151

156152
<distributionManagement>
157153
<snapshotRepository>
158-
<id>ossrh</id>
159-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
154+
<id>central</id>
155+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
160156
</snapshotRepository>
161-
<repository>
162-
<id>ossrh</id>
163-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
164-
</repository>
165157
</distributionManagement>
166158

167159
</project>

0 commit comments

Comments
 (0)