Skip to content

Commit

Permalink
use uber-jar packaging for quarkus-app
Browse files Browse the repository at this point in the history
add version from tag to release jar files
  • Loading branch information
sboeckelmann committed Dec 19, 2023
1 parent 878967e commit f9aefb3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/maven-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ jobs:
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: 'Get Version from tag'
uses: olegtarasov/get-tag@v2.1.2
id: tagName
with:
tagRegex: "v(.*)"
tagRegexGroup: 1

- id: build_jar
name: Build JARs
env:
Expand All @@ -37,6 +45,7 @@ jobs:
--no-transfer-progress \
--batch-mode -Pcli-build \
clean package
- name: 'Get Version Number'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Expand Down Expand Up @@ -70,8 +79,8 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
asset_path: 'quarkus-app/target/openepcis-event-hash-generator-service.jar'
asset_name: 'openepcis-event-hash-generator-service.jar'
asset_path: 'quarkus-app/target/openepcis-event-hash-generator-service-runner.jar'
asset_name: 'openepcis-event-hash-generator-service-${{env.GIT_TAG_NAME}}.jar'
asset_content_type: application/java-archive
- name: 'Upload Release CLI Asset'
if: contains(github.ref, 'v')
Expand All @@ -82,7 +91,7 @@ jobs:
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
asset_path: 'cli/target/openepcis-event-hash-generator-cli-${{env.VERSION}}-jar-with-dependencies.jar'
asset_name: 'openepcis-event-hash-generator-cli.jar'
asset_name: 'openepcis-event-hash-generator-cli-${{env.GIT_TAG_NAME}}.jar'
asset_content_type: application/java-archive
- name: 'Write Upload URL To File'
if: contains(github.ref, 'v')
Expand Down
2 changes: 2 additions & 0 deletions quarkus-app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ quarkus:
banner:
path: "openepcis-banner.txt"

package:
type: "uber-jar"

mp:
openapi:
Expand Down

0 comments on commit f9aefb3

Please sign in to comment.