Add nexus profile for releases (#1704)

Closes #1686
This commit is contained in:
Stian Thorgersen 2021-12-15 14:00:56 +01:00 committed by GitHub
parent 0ca302f356
commit f0a2494d2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 3 deletions

5
.gitignore vendored
View file

@ -136,3 +136,8 @@ server/
/assets
**/cypress.env.json
cypress/downloads/
# IntelliJ #
*.iml
.idea

View file

@ -22,6 +22,11 @@
<artifactId>keycloak-admin-ui</artifactId>
<version>16.0.0-SNAPSHOT</version>
<name>Keycloak Administration UI</name>
<description>Keycloak Administration UI</description>
<properties>
<nexus.staging.plugin.version>1.6.5</nexus.staging.plugin.version>
</properties>
<licenses>
<license>
@ -30,6 +35,21 @@
<distribution>repo</distribution>
</license>
</licenses>
<url>http://keycloak.org</url>
<scm>
<connection>scm:git:git://github.com/keycloak/keycloak-admin-ui.git</connection>
<developerConnection>scm:git:git@github.com:keycloak/keycloak-admin-ui.git</developerConnection>
<url>https://github.com/keycloak/keycloak-admin-ui/tree/master/</url>
</scm>
<developers>
<developer>
<id>keycloak</id>
<name>Keycloak Team</name>
</developer>
</developers>
<distributionManagement>
<repository>
@ -38,8 +58,44 @@
<url>https://maven.pkg.github.com/keycloak/keycloak-admin-ui</url>
</repository>
</distributionManagement>
<profiles>
<profile>
<id>nexus-staging</id>
<distributionManagement>
<repository>
<id>jboss-releases-repository</id>
<name>JBoss Releases Repository</name>
<url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus.staging.plugin.version}</version>
<extensions>true</extensions>
<configuration>
<nexusUrl>https://repository.jboss.org/nexus</nexusUrl>
<serverId>jboss-releases-repository</serverId>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
@ -170,4 +226,4 @@
</plugins>
</build>
</project>
</project>

View file

@ -7,7 +7,7 @@ echo "--------------------------------------------------------------------------
echo "Building:"
echo ""
mvn --file=./keycloak-theme/pom.xml -DretryFailedDeploymentCount=10 -DautoReleaseAfterClose=true clean deploy
mvn --file=./keycloak-theme/pom.xml -Pnexus-staging -DretryFailedDeploymentCount=10 -DautoReleaseAfterClose=true clean deploy
echo "------------------------------------------------------------------------------------------------------------"
echo "Create tag:"
@ -20,4 +20,4 @@ echo "--------------------------------------------------------------------------
echo "Upload to GitHub releases:"
echo ""
hub release create -m "$VERSION" $VERSION
hub release create -m "$VERSION" $VERSION