Skip to content

just format

$ just format

What does it do?

just format formats the code with Spring Java Format or Spotless.

Maven

  1. If Spring Java Format is configured in pom.xml it invokes mvn spring-javaformat:apply.
  2. If Spotless Plugin for Maven is configured in pom.xml it invokes mvn spring-javaformat:apply.
  3. Otherwise, it runs mvn spring-javaformat:apply with the default Spring Java Format configuration.

Gradle

  1. If Spring Java Format is configured in build.gradle it invokes gradle format.
  2. If Spotless Plugin for Gradle is configured in build.gradle it invokes gradle spotlessApply.
  3. Otherwise, it runs gradle format with the default Spring Java Format configuration.