A simple java build and dependency manager, following the philosophy of cargo and npm.
$ ~/code % jargo --new foo
> successfully created project 'foo'
$ ~/code/foo % jargo --check
> Valid jargo.toml found at "~/code/foo/jargo.toml"
> Project name: foo
$ ~/code/foo % jargo --build
> target: "~/home/code/foo/target"
> Compiling Main.java ...
$ ~/code/foo % ls ./target
> Main.class
Main.java contents:
class Main{
public static void main(String[] args){
System.out.println("Hello world");
}
}
--
$ ~/code/foo % jargo --run
> Hello, world!
Note: Run will automatically build the project, no need to run jargo --build
in advance
~/code/foo
src/
-- Main.java
# source files go here
target/
-- Main.class
# compiled .class files go here
jargo.toml
- Better support for (sub)packages
- Support for dependencies (.jars) and file resources (images, config files..)
- Track source files: Only rebuild source files if they were changed
- Change project config from the command line
- Pass different entry point class to --run
- Different verbosity levels
- JUnit support