-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix library jar #13
Fix library jar #13
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx. LGTM
@@ -8,7 +8,7 @@ jobs: | |||
steps: | |||
- uses: actions/checkout@v2 | |||
- name: Build | |||
run: clj -Adepstar | |||
run: clojure -X:depstar jar :jar cruler.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a (library) jar by invoking depstar with the desired jar name:
clojure -X:depstar jar :jar MyLib.jar
https://github.com/seancorfield/depstar#basic-usage 👍
@@ -1,7 +1,7 @@ | |||
FROM clojure:openjdk-11-tools-deps as builder | |||
WORKDIR /cruler | |||
COPY . /cruler | |||
RUN clojure -Adepstar | |||
RUN clojure -X:depstar uberjar :jar cruler.jar :aot true :main-class cruler.main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build the uberjar with AOT compilation
clojure -X:depstar uberjar :jar MyProject.jar :aot true :main-class project.core
https://github.com/seancorfield/depstar#aot-compilation 👍
"-S" "-C" "-m" "cruler.main"]} | ||
:depstar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.165"}} | ||
:ns-default hf.depstar | ||
:exec-args {}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed a mistake that a uberjar was deployed to Clojars.
before:
after:
This PR will fix the dependency problem in #12.