Skip to content

canonical/devpack-for-spring-cli

Repository files navigation

A CLI focused on developer productivity

Build

Note
Use JDK17+

Normal build:

./gradlew clean build

Which you can then run with:

java -jar build/libs/devpack-for-spring-cli-0.0.1-SNAPSHOT.jar

Native image build requires GraalVM:

snap install  graalvm-jdk --channel=v21/stable

Build the image:

export JAVA_HOME=/snap/graalvm-jdk/current/graalvm-ce/
./gradlew --no-daemon build \
          nativeCompile \
          -PcliNative=true \
          -x test

Run the native image:

./build/native/nativeCompile/devpack-for-spring-cli

Code Formatting

This project uses Spring Javaformat and is enabled by default.

Run individual tasks:

./gradlew checkFormat
./gradlew checkstyleMain
./gradlew checkstyleTest
./gradlew format

You can temporarily disable checks by setting property cliChecks to false:

./gradlew build -PcliChecks=false

Shell Completion

Shell completion for bash can be generated with completion bash command:

$ source <(devpack-for-spring completion bash)

About

Devpack for Spring command line interface application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •