Giter Site home page Giter Site logo

omar-salem / googleformatter-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from talios/googleformatter-maven-plugin

0.0 0.0 0.0 84 KB

Plugin for the Apache Maven build system to reformat source files.

License: Apache License 2.0

Java 100.00%

googleformatter-maven-plugin's 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.

googleformatter-maven-plugin's People

Contributors

talios avatar xylo04 avatar jakub-bochenski avatar jaumzera avatar mickem avatar stephan202 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.