Skip to content

Commit 5b18597

Browse files
committed
Update Parent, update BOM release setup
1 parent 95db1bb commit 5b18597

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ jobs:
3232
with:
3333
distribution: temurin
3434
java-version: 17
35-
server-id: 'sonatype-nexus-staging'
36-
server-username: 'MAVEN_DEPLOY_USERNAME'
37-
server-password: 'MAVEN_DEPLOY_TOKEN'
35+
server-id: 'central'
36+
server-username: 'CENTRAL_PORTAL_USERNAME'
37+
server-password: 'CENTRAL_PORTAL_PWD'
3838
gpg-private-key: ${{secrets.MAVEN_GPG_PRIVATE_KEY}}
3939
gpg-passphrase: 'MAVEN_GPG_PASSPHRASE'
4040

4141
- name: Maven release ${{steps.metadata.outputs.current-version}}
4242
env:
43-
MAVEN_DEPLOY_USERNAME: ${{secrets.MAVEN_DEPLOY_USERNAME}}
44-
MAVEN_DEPLOY_TOKEN: ${{secrets.MAVEN_DEPLOY_TOKEN}}
43+
CENTRAL_PORTAL_USERNAME: ${{secrets.CENTRAL_PORTAL_USERNAME}}
44+
CENTRAL_PORTAL_PWD: ${{secrets.CENTRAL_PORTAL_PWD}}
4545
MAVEN_GPG_PASSPHRASE: ${{secrets.MAVEN_GPG_PASSPHRASE}}
4646
run: |
4747
export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED"

bom/pom.xml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
</jboss.releases.repo.url>
3636
<jboss.snapshots.repo.url>https://repository.jboss.org/nexus/content/repositories/snapshots/
3737
</jboss.snapshots.repo.url>
38-
<ossrh.releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2</ossrh.releases.repo.url>
39-
<ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url>
38+
<central.portal.releases.repo.url>https://central.sonatype.com/api/v1/publisher</central.portal.releases.repo.url>
4039
</properties>
4140

4241
<dependencyManagement>
@@ -96,16 +95,16 @@
9695
</executions>
9796
</plugin>
9897
<plugin>
99-
<groupId>org.sonatype.plugins</groupId>
100-
<artifactId>nexus-staging-maven-plugin</artifactId>
101-
<version>${nexus.staging.plugin.version}</version>
98+
<groupId>org.sonatype.central</groupId>
99+
<artifactId>central-publishing-maven-plugin</artifactId>
100+
<version>0.7.0</version>
102101
<extensions>true</extensions>
103102
<configuration>
104-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
105-
<serverId>sonatype-nexus-staging</serverId>
106-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
107-
<!-- Automatically releases staging repo, no manual action needed -->
108-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
103+
<publishingServerId>central</publishingServerId>
104+
<!-- Automatically publish staged repo -->
105+
<autoPublish>true</autoPublish>
106+
<!-- The plugin will block and wait until the artifact is published -->
107+
<waitUntil>published</waitUntil>
109108
</configuration>
110109
</plugin>
111110
</plugins>
@@ -134,25 +133,20 @@
134133
</snapshotRepository>
135134
</distributionManagement>
136135
</profile>
137-
<!-- OSSRH release repository - selected by default -->
136+
<!-- Sonatype Central Portal - selected by default -->
138137
<profile>
139-
<id>ossrh-release-repo</id>
138+
<id>central-portal-release-repo</id>
140139
<activation>
141140
<activeByDefault>false</activeByDefault>
142141
<property>
143142
<name>!jboss-release-repo</name>
144143
</property>
145144
</activation>
146145
<distributionManagement>
147-
<snapshotRepository>
148-
<id>sonatype-nexus-snapshots</id>
149-
<name>Sonatype Nexus Snapshots</name>
150-
<url>${ossrh.snapshots.repo.url}</url>
151-
</snapshotRepository>
152146
<repository>
153-
<id>sonatype-nexus-staging</id>
154-
<name>Nexus Release Repository</name>
155-
<url>${ossrh.releases.repo.url}</url>
147+
<id>central-portal-staging</id>
148+
<name>Central Portal Repository</name>
149+
<url>${central.portal.releases.repo.url}</url>
156150
</repository>
157151
</distributionManagement>
158152
</profile>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.jboss.weld</groupId>
99
<artifactId>weld-parent</artifactId>
10-
<version>53</version>
10+
<version>54</version>
1111
</parent>
1212

1313
<name>Weld APIs Parent</name>

0 commit comments

Comments
 (0)