Skip to content

Commit b15f255

Browse files
committed
Make sure to publish dependencies too
1 parent 032054b commit b15f255

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Parse/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,18 @@ publishing {
285285
root.appendNode('name', projName)
286286
root.appendNode('url', gitLink)
287287
root.children().last() + pomConfig
288+
289+
// maven-publish workaround to include dependencies
290+
def dependenciesNode = asNode().appendNode('dependencies')
291+
292+
//Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each
293+
configurations.compile.allDependencies.each {
294+
def dependencyNode = dependenciesNode.appendNode('dependency')
295+
dependencyNode.appendNode('groupId', it.group)
296+
dependencyNode.appendNode('artifactId', it.name)
297+
dependencyNode.appendNode('version', it.version)
298+
}
299+
288300
}
289301
}
290302
}

0 commit comments

Comments
 (0)