Skip to content
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

Update readme with customizing app version example #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ Create a `deps.edn` at the root of your project with `cambada.jar` as an alias:
{:extra-deps
{luchiniatwork/cambada {:mvn/version "1.0.2"}}
:main-opts ["-m" "cambada.jar"
"-m" "myproj.core"]}}}
"-m" "myproj.core"
"--app-group-id" "mygroupid"
"--app-artifact-id" "myproj"]}}}
```

Create a simple hello world on a `-main` function at `src/myproj/core.clj`:
Expand Down Expand Up @@ -172,6 +174,12 @@ Creating target/classes
Creating target/myproj-1.0.0-SNAPSHOT.jar
Updating pom.xml
Done!
```

or if you want to set version to something specific:

``` shell
$ clj -A:jar --app-version 0.0.1
```

Once Cambada is done, you'll have a jar package at `target/`. In order to run
Expand Down