Awesome
gradle-modernizer-plugin
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.8.0-1" refers to the first version using modernizer-maven-plugin 1.8.0.
Usage
Add to your gradle script
plugins {
id "com.simonharrer.modernizer" version "1.8.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 = []
ignoreClassNames = []
ignoreClassNamePatterns = []
exclusions = []
exclusionPatterns = []
}
Feel free to overwrite it if necessary.
Release
Run
# Update version number
./gradlew publishPlugins
License
MIT license. See the LICENSE.md for the full MIT license.