项目作者: nicmr

项目描述 :
A simple build and depenency manager for Java, inspired by Rust's cargo and node's npm.
高级语言: Rust
项目地址: git://github.com/nicmr/jargo.git
创建时间: 2018-10-11T23:04:48Z
项目社区:https://github.com/nicmr/jargo

开源协议:

下载


Jargo

A simple java build and dependency manager, following the philosophy of cargo and npm.

1. Features

1.1 Creating a new java project

  1. $ ~/code % jargo --new foo
  2. > successfully created project 'foo'

1.2 Checking the current directory for a valid project file

  1. $ ~/code/foo % jargo --check
  2. > Valid jargo.toml found at "~/code/foo/jargo.toml"
  3. > Project name: foo

1.3 Building a project

  1. $ ~/code/foo % jargo --build
  2. > target: "~/home/code/foo/target"
  3. > Compiling Main.java ...
  4. $ ~/code/foo % ls ./target
  5. > Main.class

1.4 Running a project

Main.java contents:

  1. class Main{
  2. public static void main(String[] args){
  3. System.out.println("Hello world");
  4. }
  5. }

  1. $ ~/code/foo % jargo --run
  2. > Hello, world!

Note: Run will automatically build the project, no need to run jargo --build in advance

2. Project structure

  1. ~/code/foo
  2. src/
  3. -- Main.java
  4. # source files go here
  5. target/
  6. -- Main.class
  7. # compiled .class files go here
  8. jargo.toml

3. Planned features

  • 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