Skip to content

Commit

Permalink
Merge branch 'release/3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Oliveira committed Mar 26, 2024
2 parents 3395343 + 4eaec55 commit 9d94a42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,21 @@ jobs:
- name: Set Release version env variable
run: |
mvn versions:set -DremoveSnapshot -DgenerateBackupPoms=false
- name: Set Release version env variable
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
IFS='.' read -ra VER <<< "${{ env.RELEASE_VERSION }}"
MAJOR=${VER[0]}
MINOR=${VER[1]}
let "PREV_MINOR=MINOR-1"
RELEASE_VERSION="${MAJOR}.${PREV_MINOR}"
echo "PREV_VERSION=$PREV_VERSION" >> $GITHUB_ENV
PREV_VERSION="${MAJOR}.${PREV_MINOR}"
echo "RELEASE_VERSION=$PREV_VERSION" >> $GITHUB_ENV
- name: Criando executavel
run: |
mvn versions:set -DnewVersion=${{ env.RELEASE_VERSION }}
mvn -B assembly:single --file pom.xml
mvn mvn clean compile assembly:single --file pom.xml
- name: Criando pasta para External Jar
run: |
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 9d94a42

Please sign in to comment.