https://github.com/maciejwalkowiak/java-cli-project-template
Project template for bootstrapping Java & Picocli based CLI
https://github.com/maciejwalkowiak/java-cli-project-template
Last synced: 6 months ago
JSON representation
Project template for bootstrapping Java & Picocli based CLI
- Host: GitHub
- URL: https://github.com/maciejwalkowiak/java-cli-project-template
- Owner: maciejwalkowiak
- License: mit
- Created: 2022-12-25T20:48:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-25T06:03:24.000Z (over 2 years ago)
- Last Synced: 2025-04-03T14:43:36.689Z (6 months ago)
- Language: Java
- Size: 85.9 KB
- Stars: 70
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Java CLI project template
Probably the fastest way to bootstrap a **Java** Command Line Application (**CLI**) project!
Click the big green *Use This Template* button and start building your own CLI.
## 🤩 Highlights
- uses [Picocli](https://picocli.info/) for simple and elegant commands implementation
- builds to an **executable jar** and **GraalVM Native Image**
- preconfigured `help` and `version` commands
- generates Bash/ZSH autocompletion scripts
- uses **Maven** as a build tool
- **no frameworks** like Spring, Micronaut or Quarkus## 🛠 Requirements
- GraalVM distribution of Java (easy to install with https://sdkman.io/)
## 🤔 How to use
Run tests & build an executable JAR:
```
$ ./mvnw package
```Run tests as native image & build a native executable:
```
$ ./mvnw package -Pnative
```Run application through Maven
```
$ ./mvnw -Dexec.args=--help
```Sounds good? Consider [❤️ Sponsoring](https://github.com/sponsors/maciejwalkowiak) the project! Thank you!