Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

simonharrer/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.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.

About

Gradle plugin based upon maven-modernizer-plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages