gradle-resolution-rules-plugin
gradle-resolution-rules-plugin copied to clipboard
Gradle plugin for providing reusable dependency resolution rules.
Related docs: Selecting between capabilities https://docs.gradle.org/current/userguide/dependency_capability_conflict.html#sub:selecting-between-candidates Declaring capabilities https://docs.gradle.org/7.1/userguide/component_capabilities.html#sec:declaring-capabilities-external-modules
* Use com.netflix.nebula:gradle-dependency-lock-plugin:10.2.0-rc.1 which assists with core alignment This version of the lock plugin uses resolutionStrategy.dependencySubstitution.substitute instead of resolutionStrategy.eachDependency See: https://github.com/nebula-plugins/gradle-dependency-lock-plugin/releases/tag/v10.2.0-rc.1 * Add a substitution and alignment test that uses...
## Issue This plugin is not compatible with Android projects as the [`com.android.application`](https://android.googlesource.com/platform/tools/build/+/oreo-release/gradle/src/main/groovy/com/android/build/gradle/BasePlugin.groovy#234) gradle plugin adds tasks and steps up it's depencies on the `project.afterEvaluate` event as well. The existing...
When writing Gradle plugins that use Kotlin DSL there is a conflict w/ resolution-rules, resulting in this error: `Cannot change attributes of dependency configuration ':apiElements-published' after it has been resolved`...
When I upgrade the plugin to 7.8.2 I get following error: ``` Cause 39: org.gradle.internal.typeconversion.UnsupportedNotationException: Cannot convert the provided notation to an object of type ModuleIdentifier: javax.annotation:javax.annotation-api:1.+. The following types/formats...
Provide the same flexibility that align rules have to the other rule types that can apply to more than one module.
I am surprised that there is no rule type to simply force a specific version of a transitive dependency. I know I can achieve this with: ``` substitute": [ {...
I am currently using the following snippet in my `build.gradle.kts` but would love to replace this with a rule for the plugin: ```kotlin configurations.all { resolutionStrategy { eachDependency { if...
Any idea, what might be causing these kind of errors when I run autoLintGradle on a project where I use bom imports and gradle resolution rules plugin: ``` Resolution rules...
Reproduced in https://github.com/nadavc/repro-rules-exceptions ``` $ gw build Using gradle at '/Users/ncohen/dev/tests/repro/gradlew' to run buildfile '/Users/ncohen/dev/tests/repro/build.gradle': FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root...