https://github.com/nebula-plugins/gradle-resolution-rules-plugin
Gradle plugin for providing reusable dependency resolution rules.
https://github.com/nebula-plugins/gradle-resolution-rules-plugin
Last synced: 3 months ago
JSON representation
Gradle plugin for providing reusable dependency resolution rules.
- Host: GitHub
- URL: https://github.com/nebula-plugins/gradle-resolution-rules-plugin
- Owner: nebula-plugins
- License: apache-2.0
- Created: 2015-10-13T22:06:54.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T20:16:30.000Z (4 months ago)
- Last Synced: 2025-04-02T06:07:56.776Z (3 months ago)
- Language: Groovy
- Homepage:
- Size: 1.67 MB
- Stars: 46
- Watchers: 21
- Forks: 16
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Gradle Resolution Rules Plugin

[](https://plugins.gradle.org/plugin/com.netflix.nebula.resolution-rules)
[](https://maven-badges.herokuapp.com/maven-central/com.netflix.nebula/gradle-resolution-rules-plugin)

[](http://www.apache.org/licenses/LICENSE-2.0)Gradle resolution strategies and module metadata provide an effective way to solve the most common dependency issues, however sharing these rules between projects is cumbersome, and requires custom plugins or `apply from` calls. This plugin provides general purpose rule types, allowing rules to be published, versioned, shared between projects, and optionally [dependency locked](https://github.com/nebula-plugins/gradle-dependency-lock-plugin).
These rule types solve the most common cause of dependency issues in projects, including:
- Duplicate classes caused by changes to group or artifact ids, without renaming packages
- Duplicate classes caused by bundle dependencies, which do not conflict resolve against the normal dependencies for that library
- Lack of version alignment between libraries, where version alignment is needed for compatibility
- Ensuring a minimum version of a library# Quick Start
Refer to the [Gradle Plugin Portal](https://plugins.gradle.org/plugin/nebula.resolution-rules) for instructions on how to apply the plugin.
## Open Source Rules
We produce a rules for dependencies found in Maven Central and other public repositories, to use those rules in your project add the following to your root project:
```groovy
allprojects {
apply plugin: 'com.netflix.nebula.resolution-rules'
}dependencies {
resolutionRules 'com.netflix.nebula:gradle-resolution-rules:latest.release'
}
```See the [gradle-resolution-rules](https://github.com/nebula-plugins/gradle-resolution-rules) project for details of the rules, and instructions on how to enable optional rule sets.
# Documentation
The project wiki contains the [full documentation](https://github.com/nebula-plugins/gradle-resolution-rules-plugin/wiki) for the plugin.