java-command-line-quickstart is a template repository to bootstrap a new command line application using:
- Java 17
- Gradle 8 with Kotlin DSL for build
- GraalVM for native build
- Picocli for command line parsing
- Picocli Code Generation for Bash completion script generation
- Maven Central for dependencies
- JUnit 5 for tests
- EditorConfig for code formatting
- GitHub workflow for running tests and uploading artifacts
- Renovate for dependencies update
By default, this template creates an application named command_line_quickstart
.
To rename it, for example to brand-new-app
, start the following command:
APPLICATION_NAME=brand-new-app make update-application
./gradlew run "--args=--help"
> Task :run
Usage: Command [-hV]
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
./build/native/nativeCompile/command_line_quickstart --help
Usage: Command [-hV]
-h, --help Show this help message and exit.
-V, --version Print version information and exit.