Skip to content

Commit

Permalink
Update versions in pom.xml for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
takahi-i committed Sep 20, 2016
1 parent 345a4cf commit dc0b2a9
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>cc.redpen</groupId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
<artifactId>redpen</artifactId>
<url>http://redpen.cc</url>
<name>redpen</name>
Expand Down
8 changes: 4 additions & 4 deletions redpen-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<groupId>cc.redpen</groupId>
<artifactId>redpen</artifactId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
</parent>

<artifactId>redpen-cli</artifactId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
<name>redpen-cli</name>
<description>RedPen is an open source proofreading tool a tool to check if your technical documents meet the writing standard . RedPen supports various markup text formats (Markdown, Textile, AsciiDoc, and LaTeX).</description>
<url>http://redpen.cc</url>
Expand Down Expand Up @@ -106,12 +106,12 @@
<dependency>
<groupId>cc.redpen</groupId>
<artifactId>redpen-core</artifactId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cc.redpen</groupId>
<artifactId>redpen-plugin</artifactId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions redpen-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<groupId>cc.redpen</groupId>
<artifactId>redpen</artifactId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
</parent>

<artifactId>redpen-core</artifactId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
<name>redpen-core</name>
<description>RedPen is an open source proofreading tool a tool to check if your technical documents meet the writing standard . RedPen supports various markup text formats (Markdown, Textile, AsciiDoc, and LaTeX).</description>
<url>http://redpen.cc</url>
Expand Down
2 changes: 1 addition & 1 deletion redpen-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>redpen</artifactId>
<groupId>cc.redpen</groupId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions redpen-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>redpen</artifactId>
<groupId>cc.redpen</groupId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
</parent>
<packaging>jar</packaging>
<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -57,7 +57,7 @@
<dependency>
<groupId>cc.redpen</groupId>
<artifactId>redpen-core</artifactId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
4 changes: 2 additions & 2 deletions redpen-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>redpen</artifactId>
<groupId>cc.redpen</groupId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -164,7 +164,7 @@
<dependency>
<groupId>cc.redpen</groupId>
<artifactId>redpen-core</artifactId>
<version>1.7.4</version>
<version>1.7.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.wink</groupId>
Expand Down
16 changes: 8 additions & 8 deletions release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

pipeline:
- name: Set Version
command: mvn versions:set -DnewVersion=$REDPEN_VERSION
- name: Add Files to the Next Changes
command: git add pom.xml; git add **/*.xml
- name: Commit Version Changes
command: git commit -m "Set version in pom.xml to $REDPEN_VERSION"
# - name: Set Version
# command: mvn versions:set -DnewVersion=$REDPEN_VERSION
# - name: Add Files to the Next Changes
# command: git add pom.xml; git add **/*.xml
# - name: Commit Version Changes
# command: git commit -m "Set version in pom.xml to $REDPEN_VERSION"
# - name: Delopy to Sonatype
# command: mvn clean deploy -DperformRelease --settings ~/.m2/settings.xml
- name: Create Release Tag
command: git tag -a redpen-$REDPEN_VERSION -m "RedPen release $REDPEN_VERSION"
# - name: Create Release Tag
# command: git tag -a redpen-$REDPEN_VERSION -m "RedPen release $REDPEN_VERSION"
- name: Flush Next Release Version Number
command: echo $REDPEN_VERSION | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d-SNAPSHOT", length($NF), ($NF+1)%(10^length($NF))); print}'
- name: Echo Next Version
Expand Down

0 comments on commit dc0b2a9

Please sign in to comment.