|
Note
|
Use JDK17+ |
Normal build:
./gradlew clean buildWhich you can then run with:
java -jar build/libs/devpack-for-spring-cli-0.0.1-SNAPSHOT.jarNative image build requires GraalVM:
snap install graalvm-jdk --channel=v21/stableBuild the image:
export JAVA_HOME=/snap/graalvm-jdk/current/graalvm-ce/
./gradlew --no-daemon build \
nativeCompile \
-PcliNative=true \
-x testRun the native image:
./build/native/nativeCompile/devpack-for-spring-cliThis project uses Spring Javaformat and is enabled by default.
Run individual tasks:
./gradlew checkFormat
./gradlew checkstyleMain
./gradlew checkstyleTest
./gradlew formatYou can temporarily disable checks by setting property cliChecks to false:
./gradlew build -PcliChecks=false