From 8f5eb2dad70cd5934d578817efc584fac64321e9 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 4 Mar 2021 14:28:51 +0300 Subject: [PATCH] Adding API dependencies to transitive --- release.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/release.gradle b/release.gradle index b49d868..aef20c6 100644 --- a/release.gradle +++ b/release.gradle @@ -73,6 +73,16 @@ publishing { dependencyNode.appendNode("version", it.version) dependencyNode.appendNode("scope", "runtime") } + project.configurations.api + .allDependencies + .findAll { it.name != "unspecified" } + .each { + def dependencyNode = dependenciesNode.appendNode("dependency") + dependencyNode.appendNode("groupId", it.group) + dependencyNode.appendNode("artifactId", it.name) + dependencyNode.appendNode("version", it.version) + dependencyNode.appendNode("scope", "compile") + } } } }