Skip to content

optimaster/gradle-modernizer-plugin

 
 

Repository files navigation

gradle-modernizer-plugin Build Status

This gradle plugin is a thin wrapper around the modernizer-maven-plugin.

The version of this gradle plugin uses the format "${modernizer-maven-plugin.version}-${internalVersion}. For instance, "1.4.0-1" refers to the first version using modernizer-maven-plugin 1.4.0.

Usage

Add to your gradle script

plugins {
   id "com.simonharrer.modernizer" version "1.4.0-1"
}

and use it from the command line

$ gradle modernizer

Configuration

The default configuration that is automatically applied:

modernizer {
   includeTestClasses = true
   failOnViolations = true
   
   exclusionsFile = ""
   violationsFile = "/modernizer.xml"
   
   javaVersion = project.targetCompatibility
   
   ignorePackages = []
}

Feel free to overwrite it if necessary.

License

MIT license. See the LICENSE.md for the full MIT license.

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%