Skip to content

Commit

Permalink
Changed to CI friendly Maven versioning (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
freemanjp authored Aug 16, 2022
1 parent eb802ff commit c184be0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

set -e

./mvnw install -Dinvoker.streamLogs=true --batch-mode --show-version
./mvnw install \
"-Drevision=${GIT_TAG:-development-SNAPSHOT}" \
-Dinvoker.streamLogs=true \
--batch-mode \
--show-version
1 change: 1 addition & 0 deletions .github/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set +x

./mvnw deploy \
-P publish-artifacts,sign-artifacts \
"-Drevision=${GIT_TAG:-development-SNAPSHOT}" \
-DskipTests \
-Dinvoker.skip=true \
--batch-mode \
Expand Down
2 changes: 1 addition & 1 deletion kotlin-maven-plugin-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>com.github.gantsign.maven.plugin-tools</groupId>
<artifactId>kotlin-maven-plugin-tools-parent</artifactId>
<version>0.9.27-SNAPSHOT</version>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>

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

<groupId>com.github.gantsign.maven.plugin-tools</groupId>
<artifactId>kotlin-maven-plugin-tools-parent</artifactId>
<version>0.9.27-SNAPSHOT</version>
<version>${revision}</version>

<packaging>pom</packaging>

Expand Down

0 comments on commit c184be0

Please sign in to comment.