clojure -X:clj-new :template rssyslib :name myname/myproject
cd myproject
This Library template
helps you to quick start new library project using clojure deps cli and clj-new.
This Library template
provides:
Creating a project from this template just run:
clojure -X:clj-new :template rssyslib :name myname/myproject
cd myproject
where :clj-new
is alias in ~/.clojure/deps.edn
file (see prerequisites below).
Please, see README.adoc
in a root folder of created project.
All these tools you need to install only once.
Install clojure deps cli tools
MacOS
brew install clojure/tools/clojure
Linux
Ensure that the following dependencies are installed in OS: bash
, curl
, rlwrap
, and Java
.
curl -O https://download.clojure.org/install/linux-install-1.10.2.790.sh
chmod +x linux-install-1.10.2.790.sh
sudo ./linux-install-1.10.2.790.sh
Install latest clj-new library to a file ~/.clojure/deps.edn
{
:aliases {
:clj-new {:extra-deps {seancorfield/clj-new {:mvn/version "1.1.243"}}
:exec-fn clj-new/create}
}
}
Install just utility
MacOS
brew install just
Linux
wget https://github.com/casey/just/releases/download/v0.8.3/just-v0.8.3-x86_64-unknown-linux-musl.tar.gz
tar -zxvf just-v0.8.3-x86_64-unknown-linux-musl.tar.gz just
sudo mv ./just /usr/local/bin
Install babashka
MacOS
brew install borkdude/brew/babashka
Linux
sudo bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)
To set release version run:
just bump release
To update patch version run:
just bump patch
To build this library template run:
just build
This command will produce deployable jar file and update the generated pom.xml
file to keep the dependencies synchronized with your deps.edn
file.
You can update the version information in the pom.xml
using the version_id
file.
To deploy jar file to Clojars run:
just deploy
Check .env.private
file for correct values of user and password.
Copyright © 2021 Mike Ananev
Distributed under the Eclipse Public License 2.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close