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.
Add to your gradle script
plugins {
id "com.simonharrer.modernizer" version "1.8.0-1"
}
and use it from the command line
$ gradle modernizer
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.
Run
# Update version number
./gradlew publishPlugins
MIT license. See the LICENSE.md for the full MIT license.