javac -cp ".:lib/*" -d bin $(find ./src/* | grep .java)
jar --create --file jdm.jar --manifest=MANIFEST.MF -C bin/ .
Pack jar file to executable with packr
java -jar packr.jar packr.json
JDM is a dependency manager which tries to mimic NPM like dependency management through json file. This do not includes any kind of build system. JDM only retrieves the jar file from repository and saves it to <project root>/lib
folder. How to link these lib folder while compiling totally depends on user.
JDM is specially developed to work with vscode java extension. It also includes option to initialize vscode setting
for java which is handy tool to initialize empty java project in vscode.
Steps to setup JDM:
- Download exec file from release
- extract zip file
- add extracted path to OS env path.
- open terminal and run
jdm -h
Usage: java JDM []
Commands: help [--help -h] Usage help init Initialize 'jdm.json' or '.vscode/settings.json'. Options: jdm, vscode fetch Fetch dependencies
{
"group": "",
"artifact": "",
"version": "",
"description": "",
"packages": [
{
"group": "",
"artifact": "",
"version": ""
}
]
}