Skip to content

Commit 63e5b98

Browse files
committed
Update Parent, API and release setup
1 parent b4dc09c commit 63e5b98

File tree

3 files changed

+22
-28
lines changed

3 files changed

+22
-28
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: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,14 @@
3030
</developers>
3131

3232
<properties>
33-
<weld.api.bom.version>6.0.Final</weld.api.bom.version>
33+
<weld.api.bom.version>7.0.Alpha2</weld.api.bom.version>
3434
<gpg.plugin.version>3.2.7</gpg.plugin.version>
3535
<nexus.staging.plugin.version>1.7.0</nexus.staging.plugin.version>
3636
<jboss.releases.repo.url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/
3737
</jboss.releases.repo.url>
3838
<jboss.snapshots.repo.url>https://repository.jboss.org/nexus/content/repositories/snapshots/
3939
</jboss.snapshots.repo.url>
40-
<ossrh.releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2</ossrh.releases.repo.url>
41-
<ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url>
40+
<central.portal.releases.repo.url>https://central.sonatype.com/api/v1/publisher</central.portal.releases.repo.url>
4241
</properties>
4342

4443
<dependencyManagement>
@@ -166,16 +165,16 @@
166165
</executions>
167166
</plugin>
168167
<plugin>
169-
<groupId>org.sonatype.plugins</groupId>
170-
<artifactId>nexus-staging-maven-plugin</artifactId>
171-
<version>${nexus.staging.plugin.version}</version>
168+
<groupId>org.sonatype.central</groupId>
169+
<artifactId>central-publishing-maven-plugin</artifactId>
170+
<version>0.7.0</version>
172171
<extensions>true</extensions>
173172
<configuration>
174-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
175-
<serverId>sonatype-nexus-staging</serverId>
176-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
177-
<!-- Automatically releases staging repo, no manual action needed -->
178-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
173+
<publishingServerId>central</publishingServerId>
174+
<!-- Automatically publish staged repo -->
175+
<autoPublish>true</autoPublish>
176+
<!-- The plugin will block and wait until the artifact is published -->
177+
<waitUntil>published</waitUntil>
179178
</configuration>
180179
</plugin>
181180
</plugins>
@@ -204,25 +203,20 @@
204203
</snapshotRepository>
205204
</distributionManagement>
206205
</profile>
207-
<!-- OSSRH release repository - selected by default -->
206+
<!-- Sonatype Central Portal - selected by default -->
208207
<profile>
209-
<id>ossrh-release-repo</id>
208+
<id>central-portal-release-repo</id>
210209
<activation>
211210
<activeByDefault>false</activeByDefault>
212211
<property>
213212
<name>!jboss-release-repo</name>
214213
</property>
215214
</activation>
216215
<distributionManagement>
217-
<snapshotRepository>
218-
<id>sonatype-nexus-snapshots</id>
219-
<name>Sonatype Nexus Snapshots</name>
220-
<url>${ossrh.snapshots.repo.url}</url>
221-
</snapshotRepository>
222216
<repository>
223-
<id>sonatype-nexus-staging</id>
224-
<name>Nexus Release Repository</name>
225-
<url>${ossrh.releases.repo.url}</url>
217+
<id>central-portal-staging</id>
218+
<name>Central Portal Repository</name>
219+
<url>${central.portal.releases.repo.url}</url>
226220
</repository>
227221
</distributionManagement>
228222
</profile>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>org.jboss.weld</groupId>
1212
<artifactId>weld-parent</artifactId>
13-
<version>53</version>
13+
<version>54</version>
1414
</parent>
1515

1616

@@ -85,7 +85,7 @@
8585
<spotbugs-maven-plugin.version>4.9.3.0</spotbugs-maven-plugin.version>
8686
<spotbugs-annotations-version>4.9.3</spotbugs-annotations-version>
8787
<testng.version>7.9.0</testng.version>
88-
<weld.api.version>7.0.Alpha1</weld.api.version>
88+
<weld.api.version>7.0.Alpha2</weld.api.version>
8989
<weld.logging.tools.version>1.0.3.Final</weld.logging.tools.version>
9090
<wildfly.arquillian.version>5.0.1.Final</wildfly.arquillian.version>
9191
</properties>

0 commit comments

Comments
 (0)