Skip to content

Commit

Permalink
Fixes for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
stianst committed Mar 6, 2019
1 parent 8a750c7 commit 7ad02e7
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 63 deletions.
3 changes: 1 addition & 2 deletions dependencies/drools-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-parent</artifactId>
<artifactId>keycloak-dependencies-parent</artifactId>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
12 changes: 0 additions & 12 deletions dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,4 @@
<module>server-min</module>
<module>server-all</module>
</modules>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
3 changes: 1 addition & 2 deletions dependencies/server-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>keycloak-parent</artifactId>
<artifactId>keycloak-dependencies-parent</artifactId>
<groupId>org.keycloak</groupId>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
3 changes: 1 addition & 2 deletions dependencies/server-min/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>keycloak-parent</artifactId>
<artifactId>keycloak-dependencies-parent</artifactId>
<groupId>org.keycloak</groupId>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<profiles>
<profile>
<id>jboss-release</id>
<id>distribution-downloads</id>
<modules>
<module>api-docs-dist</module>
<module>examples-dist</module>
Expand Down
11 changes: 0 additions & 11 deletions examples/demo-template/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,6 @@
<artifactId>keycloak-examples-demo-parent</artifactId>
<packaging>pom</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<!-- <module>server</module> -->
<module>customer-app</module>
Expand Down
11 changes: 0 additions & 11 deletions examples/saml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,6 @@
<artifactId>keycloak-examples-saml-parent</artifactId>
<packaging>pom</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>post-with-signature</module>
<module>post-with-encryption</module>
Expand Down
3 changes: 1 addition & 2 deletions model/infinispan/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>keycloak-parent</artifactId>
<artifactId>keycloak-model-pom</artifactId>
<groupId>org.keycloak</groupId>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
3 changes: 1 addition & 2 deletions model/jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>keycloak-parent</artifactId>
<artifactId>keycloak-model-pom</artifactId>
<groupId>org.keycloak</groupId>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
11 changes: 0 additions & 11 deletions model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,6 @@
<artifactId>keycloak-model-pom</artifactId>
<packaging>pom</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>jpa</module>
<module>infinispan</module>
Expand Down
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@
<module>integration</module>
<module>adapters</module>
<module>authz</module>
<module>examples</module>
<module>misc</module>
</modules>

Expand Down Expand Up @@ -1727,6 +1726,15 @@
</modules>
</profile>

<profile>
<id>examples</id>
<activation>
<property>
<name>!skipExamples</name>
</property>
</activation>
</profile>

<profile>
<id>distribution</id>
<modules>
Expand Down
11 changes: 5 additions & 6 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
#!/bin/bash -e

DIR="$PWD"
VERSION=`./get-version.sh`
source release-details

echo "Version: $VERSION"

echo "------------------------------------------------------------------------------------------------------------"
echo "Building:"
echo ""

mvn -Pjboss-release -DskipTests clean install
mvn -Pjboss-release,distribution-downloads -DskipTests -DskipTestsuite clean install


echo "------------------------------------------------------------------------------------------------------------"
echo "Deploying:"
echo ""

mvn -Pjboss-release -DretryFailedDeploymentCount=10 -DskipTests -DstagingDescription="Keycloak $VERSION release" deploy

mvn nexus-staging:release -DstagingDescription="Keycloak $VERSION release"
mvn -Pjboss-release,nexus-staging -DretryFailedDeploymentCount=10 -DskipTests -DskipTestsuite -DskipExamples -DautoReleaseAfterClose=true deploy


echo "------------------------------------------------------------------------------------------------------------"
Expand All @@ -33,7 +32,7 @@ echo ""

TMP=`mktemp -d`
cd $TMP
unzip $DIR/keycloak/distribution/adapters/js-adapter-npm-zip/target/keycloak-js-adapter-npm-dist-$VERSION.zip
unzip $DIR/distribution/adapters/js-adapter-npm-zip/target/keycloak-js-adapter-npm-dist-$VERSION.zip
cd keycloak-js-adapter-npm-dist-$VERSION

npm publish
Expand Down

0 comments on commit 7ad02e7

Please sign in to comment.