Skip to content

Commit

Permalink
Allow multi digit patch releases (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbllmnn authored and dnlkoch committed Jan 27, 2022
1 parent 952c40f commit 285f9a4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ fi

# check if the input parameter RELEASE_VERSION is valid
RELEASE_VERSION="$1"
if [[ ! $RELEASE_VERSION =~ ^([0-9]+\.[0-9]+\.[0-9])$ ]]; then
if [[ ! $RELEASE_VERSION =~ ^([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
echo "Error: RELEASE_VERSION must be in X.Y.Z format, but was $RELEASE_VERSION"
exit 1
fi

# check if the input parameter DEVELOPMENT_VERSION is valid
DEVELOPMENT_VERSION="$2"
if [[ ! $DEVELOPMENT_VERSION =~ ^([0-9]+\.[0-9]+\.[0-9])(\-SNAPSHOT)$ ]]; then
if [[ ! $DEVELOPMENT_VERSION =~ ^([0-9]+\.[0-9]+\.[0-9]+)(\-SNAPSHOT)$ ]]; then
echo "Error: DEVELOPMENT_VERSION must be in X.Y.Z-SNAPSHOT format, but was $DEVELOPMENT_VERSION"
exit 1
fi
Expand Down
17 changes: 8 additions & 9 deletions src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.terrestris</groupId>
<artifactId>shogun-core</artifactId>
<version>5.4.0-SNAPSHOT</version>
<version>5.3.10-SNAPSHOT</version>
<packaging>pom</packaging>
<name>SHOGun-Core</name>
<description>SHOGun-Core is the core framework used in SHOGun</description>
Expand All @@ -27,7 +27,7 @@
<url>https://github.com/terrestris/shogun-core</url>
<connection>scm:git:git://github.com/terrestris/shogun-core.git</connection>
<developerConnection>scm:git:[email protected]:terrestris/shogun-core.git</developerConnection>
<tag>HEAD</tag>
<tag>v5.4.0</tag>
</scm>

<ciManagement>
Expand Down Expand Up @@ -119,16 +119,15 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<webapp-archetype-resource-pom>shogun-core-webapp-archetype/src/main/resources/archetype-resources/pom.xml
</webapp-archetype-resource-pom>
<webapp-archetype-resource-pom>shogun-core-webapp-archetype/src/main/resources/archetype-resources/pom.xml</webapp-archetype-resource-pom>

<tomcat.version>9.0.30</tomcat.version>

<!-- Core -->
<spring.version>5.3.10</spring.version>
<spring-security.version>5.5.2</spring-security.version>
<spring-ldap.version>2.3.2.RELEASE</spring-ldap.version>
<log4j.version>2.17.1</log4j.version>
<log4j.version>2.17.0</log4j.version>
<slf4j.version>1.7.28</slf4j.version>
<jackson.version>2.13.0-rc2</jackson.version>
<opencsv.version>4.6</opencsv.version>
Expand All @@ -142,7 +141,7 @@
<jdom.version>1.1.3</jdom.version>

<!-- Testing -->
<junit.version>4.13.1</junit.version>
<junit.version>4.13</junit.version>
<hamcrest.version>1.3</hamcrest.version>
<mockito.version>2.28.2</mockito.version>
<jsonpath.version>1.2.0</jsonpath.version>
Expand All @@ -154,7 +153,7 @@

<!-- Apache Commons -->
<commons-dbutils.version>1.7</commons-dbutils.version>
<commons-io.version>2.7</commons-io.version>
<commons-io.version>2.6</commons-io.version>
<commons-beanutils.version>1.9.4</commons-beanutils.version>
<commons-lang3.version>3.9</commons-lang3.version>
<commons-collections4.version>4.4</commons-collections4.version>
Expand Down Expand Up @@ -203,7 +202,7 @@
<!-- Zip4j -->
<zip4j.version>1.3.3</zip4j.version>

<xerces.version>2.12.0</xerces.version>
<xerces.version>2.11.0</xerces.version>
<!-- Java XML Parser -->
<jaxp-api.version>1.4.5</jaxp-api.version>

Expand Down Expand Up @@ -497,7 +496,7 @@
<replacements>
<replacement>
<token>
&lt;shogun.version&gt;([0-9]+\.[0-9]+\.[0-9])(\-SNAPSHOT){0,1}&lt;/shogun.version&gt;
&lt;shogun.version&gt;([0-9]+\.[0-9]+\.[0-9]+)(\-SNAPSHOT){0,1}&lt;/shogun.version&gt;
</token>
<value>&lt;shogun.version&gt;${newShogunVersion}&lt;/shogun.version&gt;</value>
</replacement>
Expand Down
2 changes: 1 addition & 1 deletion src/shogun-core-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.terrestris</groupId>
<artifactId>shogun-core</artifactId>
<version>5.4.0-SNAPSHOT</version>
<version>5.3.10-SNAPSHOT</version>
</parent>

<artifactId>shogun-core-main</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/shogun-core-webapp-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.terrestris</groupId>
<artifactId>shogun-core</artifactId>
<version>5.4.0-SNAPSHOT</version>
<version>5.3.10-SNAPSHOT</version>
</parent>

<artifactId>shogun-core-webapp-archetype</artifactId>
Expand Down

0 comments on commit 285f9a4

Please sign in to comment.