Fixed most duplicate dependencies between cordapps and the corda.jar.

This commit is contained in:
Clinton Alexander 2016-11-29 15:00:02 +00:00
parent c3c0b4b25a
commit 426bae625a

View File

@ -206,8 +206,10 @@ class Node {
def cordaJar = verifyAndGetCordaJar()
def cordappDeps = getCordappList()
def depsDir = new File(nodeDir, "dependencies")
def coreDeps = project.zipTree(cordaJar)
def appDeps = project.configurations.runtime.filter { it != cordaJar && !cordappDeps.contains(it) }.minus(coreDeps)
def coreDeps = project.zipTree(cordaJar).getFiles().collect { it.getName() }
def appDeps = project.configurations.runtime.filter {
it != cordaJar && !cordappDeps.contains(it) && !coreDeps.contains(it.getName())
}
project.copy {
from appDeps
into depsDir