We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2918f42 commit bc495a5Copy full SHA for bc495a5
gradle/publishing.gradle
@@ -58,6 +58,16 @@ publishing {
58
appendNode('artifactId', dependency.name)
59
appendNode('version', dependency.version)
60
appendNode('scope', scope)
61
+
62
+ if (dependency instanceof ModuleDependency && !dependency.excludeRules.empty) {
63
+ def excludesNode = appendNode('exclusions')
64
+ for (rule in dependency.excludeRules) {
65
+ excludesNode.appendNode('exclusion').with {
66
+ appendNode('groupId', rule.group)
67
+ appendNode('artifactId', rule.module)
68
+ }
69
70
71
}
72
73
0 commit comments