just format
$ just format
What does it do?
just format
formats the code with Spring Java Format or Spotless.
Maven
- If Spring Java Format is configured in
pom.xml
it invokesmvn spring-javaformat:apply
. - If Spotless Plugin for Maven is configured in
pom.xml
it invokesmvn spring-javaformat:apply
. - Otherwise, it runs
mvn spring-javaformat:apply
with the default Spring Java Format configuration.
Gradle
- If Spring Java Format is configured in
build.gradle
it invokesgradle format
. - If Spotless Plugin for Gradle is configured in
build.gradle
it invokesgradle spotlessApply
. - Otherwise, it runs
gradle format
with the default Spring Java Format configuration.