• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

talios/googleformatter-maven-plugin: Plugin for the Apache Maven build system to ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

talios/googleformatter-maven-plugin

开源软件地址(OpenSource Url):

https://github.com/talios/googleformatter-maven-plugin

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

Google Formatter Plugin for Apache Maven

A simple Apache Maven plugin to reformat a projects source/test-sources using the google-java-format project to conform with the Google Code Style Guide.

By default the plugin will only process stale source files ( comparing against their respective .class files existence/timestamp ).

After processing each file, the contents sha1 is compared against the original and only rewritten if they no longer match.

    <plugin>
      <groupId>com.theoryinpractise</groupId>
      <artifactId>googleformatter-maven-plugin</artifactId>
      <version>1.7.3</version>
      <executions>
        <execution>
          <id>reformat-sources</id>
          <configuration>
            <includeStale>false</includeStale>
            <style>GOOGLE</style>
            <formatMain>true</formatMain>
            <formatTest>true</formatTest>
            <filterModified>false</filterModified>
            <skip>false</skip>
            <fixImports>false</fixImports>
            <maxLineLength>100</maxLineLength>
          </configuration>
          <goals>
            <goal>format</goal>
          </goals>
          <phase>process-sources</phase>
        </execution>
      </executions>
    </plugin>

Changes

  • 1.7.4 - Wed 19 Jun 2019 23:52:15 NZST
    • Add formatMain / formatTest options*
  • 1.7.3 -Tue 4 Jun 2019 12:31:34 NZST
    • Restored maxLineLenght and formatter.maxLineLength property
  • 1.0.6 - Tue 31 May 2016 10:51:16 NZST
    • Exposed formatter.modified to reformat only changed SCM files.
    • Requires Java 8 to run now.
  • 1.0.5 - Thu 26 May 2016 11:35:33 NZST
    • Exposed formatter.length as a property
  • 1.0.4 - Fri 15 Apr 2016 22:13:39 NZST
    • Dropped required flag on configuration values.
  • 1.0.3 - Fri 15 Apr 2016 20:45:58 NZST
    • Added <skip> ( and -Dformatter.skip ) configuration setting to skip reformatting code.
  • 1.0.2 - Thu 14 Apr 2016 12:58:00 NZST
    • Handle missing test directories.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
devopstrainingblr/Maven-Web-Profiles发布时间:2022-08-17
下一篇:
Sarcouy/s2i-tomcat: s2i for apache-tomcat maven java apps发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap