Skip to content

Files

Latest commit

 

History

History
47 lines (30 loc) · 1.14 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.14 KB

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.