mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-19 21:40:12 -06:00
Add publishing plugin for Maven Central Repository migration (#40029)
Signed-off-by: stianst <stianst@gmail.com>
This commit is contained in:
37
.github/mvn-rel-settings.xml
vendored
37
.github/mvn-rel-settings.xml
vendored
@@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
|
||||||
<activeProfiles>
|
|
||||||
<activeProfile>keycloak-rel</activeProfile>
|
|
||||||
</activeProfiles>
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>keycloak-rel</id>
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>${env.MAVEN_ID}</id>
|
|
||||||
<url>${env.MAVEN_URL}</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
<releases>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</releases>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
<servers>
|
|
||||||
<server>
|
|
||||||
<id>${env.MAVEN_ID}</id>
|
|
||||||
<username>${env.MAVEN_USERNAME}</username>
|
|
||||||
<password>${env.MAVEN_PASSWORD}</password>
|
|
||||||
</server>
|
|
||||||
<server>
|
|
||||||
<id>gpg.passphrase</id>
|
|
||||||
<passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
|
|
||||||
</server>
|
|
||||||
</servers>
|
|
||||||
|
|
||||||
</settings>
|
|
||||||
37
boms/pom.xml
37
boms/pom.xml
@@ -45,14 +45,21 @@
|
|||||||
</licenses>
|
</licenses>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<jboss.repo.nexusUrl>https://s01.oss.sonatype.org/</jboss.repo.nexusUrl>
|
<central.publishing.plugin.version>0.7.0</central.publishing.plugin.version>
|
||||||
<jboss.releases.repo.id>jboss-releases-repository</jboss.releases.repo.id>
|
<nexus3.staging.plugin.version>1.0.7</nexus3.staging.plugin.version>
|
||||||
<jboss.releases.repo.name>keycloak</jboss.releases.repo.name>
|
|
||||||
<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>
|
</properties>
|
||||||
|
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>keycloak-publish</id>
|
||||||
|
<url>https://central.sonatype.com/</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>keycloak-publish</id>
|
||||||
|
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>spi</module>
|
<module>spi</module>
|
||||||
</modules>
|
</modules>
|
||||||
@@ -105,17 +112,28 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>nexus-staging</id>
|
<id>central-staging</id>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
<groupId>org.sonatype.central</groupId>
|
||||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
||||||
|
<version>${central.publishing.plugin.version}</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<autoPublish>true</autoPublish>
|
||||||
|
<checksums>all</checksums>
|
||||||
|
<deploymentName>keycloak-${project.version}</deploymentName>
|
||||||
|
<publishingServerId>keycloak-publish</publishingServerId>
|
||||||
|
<waitUntil>published</waitUntil>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>nexus3-staging</id>
|
<id>nexus3-staging</id>
|
||||||
<build>
|
<build>
|
||||||
@@ -123,6 +141,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
<groupId>org.sonatype.plugins</groupId>
|
||||||
<artifactId>nxrm3-maven-plugin</artifactId>
|
<artifactId>nxrm3-maven-plugin</artifactId>
|
||||||
|
<version>${nexus3.staging.plugin.version}</version>
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<serverId>${jboss.releases.repo.id}</serverId>
|
<serverId>${jboss.releases.repo.id}</serverId>
|
||||||
|
|||||||
@@ -91,7 +91,6 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -108,25 +107,4 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>nexus3-staging</id>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
|
||||||
<artifactId>nxrm3-maven-plugin</artifactId>
|
|
||||||
<version>${nexus3.staging.plugin.version}</version>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<serverId>${jboss.releases.repo.id}</serverId>
|
|
||||||
<nexusUrl>${jboss.repo.nexusUrl}</nexusUrl>
|
|
||||||
<repository>${jboss.releases.repo.name}</repository>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
43
pom.xml
43
pom.xml
@@ -45,13 +45,6 @@
|
|||||||
|
|
||||||
<asciidoctor.plugin.version>1.5.8</asciidoctor.plugin.version>
|
<asciidoctor.plugin.version>1.5.8</asciidoctor.plugin.version>
|
||||||
|
|
||||||
<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.name>keycloak</jboss.releases.repo.name>
|
|
||||||
<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>3.20.1</quarkus.version>
|
<quarkus.version>3.20.1</quarkus.version>
|
||||||
<quarkus.build.version>3.20.1</quarkus.build.version>
|
<quarkus.build.version>3.20.1</quarkus.build.version>
|
||||||
<jboss-logging-annotations.version>3.0.4.Final</jboss-logging-annotations.version> <!-- keep in sync with the version used by quarkus -->
|
<jboss-logging-annotations.version>3.0.4.Final</jboss-logging-annotations.version> <!-- keep in sync with the version used by quarkus -->
|
||||||
@@ -196,7 +189,7 @@
|
|||||||
<jmeter.plugin.version>1.9.0</jmeter.plugin.version>
|
<jmeter.plugin.version>1.9.0</jmeter.plugin.version>
|
||||||
<jmeter.analysis.plugin.version>1.0.4</jmeter.analysis.plugin.version>
|
<jmeter.analysis.plugin.version>1.0.4</jmeter.analysis.plugin.version>
|
||||||
<wildfly.plugin.version>5.0.0.Final</wildfly.plugin.version>
|
<wildfly.plugin.version>5.0.0.Final</wildfly.plugin.version>
|
||||||
<nexus.staging.plugin.version>1.6.13</nexus.staging.plugin.version>
|
<central.publishing.plugin.version>0.7.0</central.publishing.plugin.version>
|
||||||
<nexus3.staging.plugin.version>1.0.7</nexus3.staging.plugin.version>
|
<nexus3.staging.plugin.version>1.0.7</nexus3.staging.plugin.version>
|
||||||
<frontend.plugin.version>1.15.0</frontend.plugin.version>
|
<frontend.plugin.version>1.15.0</frontend.plugin.version>
|
||||||
<docker.maven.plugin.version>0.40.3</docker.maven.plugin.version>
|
<docker.maven.plugin.version>0.40.3</docker.maven.plugin.version>
|
||||||
@@ -258,10 +251,13 @@
|
|||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>${jboss.releases.repo.id}</id>
|
<id>keycloak-publish</id>
|
||||||
<name>JBoss Releases Repository</name>
|
<url>https://central.sonatype.com/</url>
|
||||||
<url>${jboss.releases.repo.url}</url>
|
|
||||||
</repository>
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>keycloak-publish</id>
|
||||||
|
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
|
||||||
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
@@ -1318,16 +1314,6 @@
|
|||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
|
||||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
|
||||||
<version>${nexus.staging.plugin.version}</version>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<serverId>${jboss.releases.repo.id}</serverId>
|
|
||||||
<nexusUrl>${jboss.repo.nexusUrl}</nexusUrl>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
@@ -1637,12 +1623,21 @@
|
|||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>nexus-staging</id>
|
<id>central-staging</id>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
<groupId>org.sonatype.central</groupId>
|
||||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
||||||
|
<version>${central.publishing.plugin.version}</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<autoPublish>true</autoPublish>
|
||||||
|
<checksums>all</checksums>
|
||||||
|
<deploymentName>keycloak-${project.version}</deploymentName>
|
||||||
|
<publishingServerId>keycloak-publish</publishingServerId>
|
||||||
|
<waitUntil>published</waitUntil>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|||||||
Reference in New Issue
Block a user