spotless-maven-plugin java代码自动格式化mvn spotless:apply -fn

 <plugin>
          <groupId>com.diffplug.spotlessgroupId>
          <artifactId>spotless-maven-pluginartifactId>
          <version>1.20.0version>
          <configuration>
            <java>
              
              <includes>
                <include>src/**/java/**/*.javainclude>
              includes>
              <googleJavaFormat>
                
                <version>1.7version>
                
                <style>GOOGLEstyle>
              googleJavaFormat>
            java>
          configuration>
        plugin>

 

转载于:https://www.cnblogs.com/tonggc1668/p/10718537.html

你可能感兴趣的:(java,移动开发)