Skip to content

Commit

Permalink
uberjar: use the --uberjar parameter for software distribution\n t…
Browse files Browse the repository at this point in the history
…he library does not use it

Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
  • Loading branch information
avelino committed May 10, 2024
1 parent c5f9060 commit dfd98c8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-jar.yml
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
cli: "1.11.1.1139"
github-token: "${{ secrets.GITHUB_TOKEN }}"
- run: "clojure -M:dev --report stderr -m com.moclojer.build"
- run: "clojure -M:dev --report stderr -m com.moclojer.build --uberjar"
env:
CI_COMMIT_SHA: "${{ github.sha }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-native-image.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
cli: "1.11.1.1139"
github-token: "${{ secrets.GITHUB_TOKEN }}"
- run: "clojure -M:dev --report stderr -m com.moclojer.build"
- run: "clojure -M:dev --report stderr -m com.moclojer.build --uberjar"
env:
CI_COMMIT_SHA: "${{ github.sha }}"
- uses: "graalvm/setup-graalvm@v1"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -2,7 +2,7 @@ FROM docker.io/clojure:temurin-21-tools-deps-alpine AS jar-build
RUN apk add git
WORKDIR /app
COPY . .
RUN clojure -M:dev --report stderr -m com.moclojer.build
RUN clojure -M:dev --report stderr -m com.moclojer.build --uberjar

FROM docker.io/clojure:temurin-21-tools-deps-alpine
LABEL org.opencontainers.image.source https://github.com/moclojer/moclojer
Expand Down
1 change: 1 addition & 0 deletions docs/releases/next.md
Expand Up @@ -13,6 +13,7 @@
* Added `interceptor-error-handler` function for formatting exceptions as JSON for Internal Server Errors. Integrated error handling into `get-interceptors`. Imported `io.pedestal.interceptor.error` and `clojure.data.json` [PR #254](https://github.com/moclojer/moclojer/pull/254)
* We should be able to create a dev and prod config map when start moclojer [PR #199](https://github.com/moclojer/moclojer/issues/199)
* Updated dependencies `@actions/artifact` to v2.1.6. This update includes improvements to the artifact upload process. [PR #257](https://github.com/moclojer/moclojer/pull/257)
* Bug fix docker image build: used `uberjar` to build and distribute `.jar` file [PR #259](https://github.com/moclojer/moclojer/issues/259)

## Contributors

Expand Down

0 comments on commit dfd98c8

Please sign in to comment.