Skip to content

Instantly share code, notes, and snippets.

@yangl
Last active January 24, 2024 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yangl/2e620c263076c81e28adc216a7802caa to your computer and use it in GitHub Desktop.
Save yangl/2e620c263076c81e28adc216a7802caa to your computer and use it in GitHub Desktop.
spring-javaformat

spring-javaformat https://github.com/spring-io/spring-javaformat

pom.xml

<build>
	<plugins>
		<plugin>
			<groupId>io.spring.javaformat</groupId>
			<artifactId>spring-javaformat-maven-plugin</artifactId>
			<version>0.0.41</version>
			<executions>
				<execution>
					<phase>validate</phase>
					<inherited>true</inherited>
					<goals>
						<goal>validate</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>

IntelliJ IDEA plugin

spring-javaformat-intellij-idea-plugin https://repo1.maven.org/maven2/io/spring/javaformat/spring-javaformat-intellij-idea-plugin/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment