Publish directly to Sonatype OSSRH (#10712)

Closes #10711
This commit is contained in:
Stian Thorgersen 2022-03-15 08:59:11 +01:00 committed by GitHub
parent 4eb1720259
commit 1b214aaed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 5 deletions

View file

@ -43,6 +43,14 @@
</license> </license>
</licenses> </licenses>
<properties>
<jboss.repo.nexusUrl>https://s01.oss.sonatype.org/</jboss.repo.nexusUrl>
<jboss.releases.repo.id>jboss-releases-repository</jboss.releases.repo.id>
<jboss.releases.repo.url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</jboss.releases.repo.url>
<jboss.snapshots.repo.id>jboss-snapshots-repository</jboss.snapshots.repo.id>
<jboss.snapshots.repo.url>https://s01.oss.sonatype.org/content/repositories/snapshots/</jboss.snapshots.repo.url>
</properties>
<modules> <modules>
<module>adapter</module> <module>adapter</module>
<module>spi</module> <module>spi</module>
@ -58,8 +66,8 @@
<version>1.6.5</version> <version>1.6.5</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<nexusUrl>https://repository.jboss.org/nexus</nexusUrl>
<serverId>jboss-releases-repository</serverId> <serverId>jboss-releases-repository</serverId>
<nexusUrl>${jboss.repo.nexusUrl}</nexusUrl>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

14
pom.xml
View file

@ -35,6 +35,12 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
<jboss.repo.nexusUrl>https://s01.oss.sonatype.org/</jboss.repo.nexusUrl>
<jboss.releases.repo.id>jboss-releases-repository</jboss.releases.repo.id>
<jboss.releases.repo.url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</jboss.releases.repo.url>
<jboss.snapshots.repo.id>jboss-snapshots-repository</jboss.snapshots.repo.id>
<jboss.snapshots.repo.url>https://s01.oss.sonatype.org/content/repositories/snapshots/</jboss.snapshots.repo.url>
<quarkus.version>2.7.4.Final</quarkus.version> <quarkus.version>2.7.4.Final</quarkus.version>
<!-- <!--
@ -234,9 +240,9 @@
<distributionManagement> <distributionManagement>
<repository> <repository>
<id>jboss-releases-repository</id> <id>${jboss.releases.repo.id}</id>
<name>JBoss Releases Repository</name> <name>JBoss Releases Repository</name>
<url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url> <url>${jboss.releases.repo.url}</url>
</repository> </repository>
</distributionManagement> </distributionManagement>
@ -1737,8 +1743,8 @@
<version>${nexus.staging.plugin.version}</version> <version>${nexus.staging.plugin.version}</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<nexusUrl>https://repository.jboss.org/nexus</nexusUrl> <serverId>${jboss.releases.repo.id}</serverId>
<serverId>jboss-releases-repository</serverId> <nexusUrl>${jboss.repo.nexusUrl}</nexusUrl>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>