Skip to content

Commit

Permalink
Add prerelease profile and update release profile (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
hesara authored Feb 28, 2017
1 parent 9db1d3d commit 549fae6
Showing 1 changed file with 70 additions and 2 deletions.
72 changes: 70 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -541,14 +541,78 @@
</properties>
</profile>

<!-- maven plug-in does not inherit vaadin-parent, so need to duplicate some of these profiles -->
<profile>
<id>release</id>
<properties>
<staging.server.id>vaadin-staging</staging.server.id>
<staging.server.url>https://oss.sonatype.org/</staging.server.url>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${gpg.passphrase.file}</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<nexusUrl>${staging.server.url}</nexusUrl>
<serverId>${staging.server.id}</serverId>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>prerelease</id>
<properties>
<staging.server.id>vaadin-prerelease-staging</staging.server.id>
<!-- staging.server.url is set by the build environment profile -->
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<version>1.0.0</version>
<configuration>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
<phase>initialize</phase>
Expand Down Expand Up @@ -579,8 +643,12 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<nexusUrl>${staging.server.url}</nexusUrl>
<serverId>${staging.server.id}</serverId>
</configuration>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 549fae6

Please sign in to comment.