Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonharrer/gradle-modernizer-plugin
Gradle plugin based upon maven-modernizer-plugin
https://github.com/simonharrer/gradle-modernizer-plugin
Last synced: about 2 months ago
JSON representation
Gradle plugin based upon maven-modernizer-plugin
- Host: GitHub
- URL: https://github.com/simonharrer/gradle-modernizer-plugin
- Owner: simonharrer
- License: mit
- Archived: true
- Created: 2016-12-08T14:45:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-09T13:30:23.000Z (over 4 years ago)
- Last Synced: 2024-05-01T19:44:49.311Z (8 months ago)
- Language: Java
- Homepage: https://plugins.gradle.org/plugin/com.simonharrer.modernizer
- Size: 120 KB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-gradle - gradle-modernizer-plugin - Detect uses of legacy Java APIs. (Plugins / Code quality)
README
# gradle-modernizer-plugin [![Build Status](https://travis-ci.org/simonharrer/gradle-modernizer-plugin.svg?branch=master)](https://travis-ci.org/simonharrer/gradle-modernizer-plugin)
This gradle plugin is a thin wrapper around the [modernizer-maven-plugin](https://github.com/andrewgaul/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
```groovy
plugins {
id "com.simonharrer.modernizer" version "1.8.0-1"
}
```and use it from the command line
```bash
$ gradle modernizer
```## Configuration
The default configuration that is automatically applied:
```groovy
modernizer {
includeTestClasses = true
failOnViolations = trueexclusionsFile = ""
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](https://tldrlegal.com/license/mit-license). See the [LICENSE.md](LICENSE.md) for the full MIT license.