Cordformation now correctly includes and excludes cordapps.

This commit is contained in:
Clinton Alexander 2017-02-10 15:44:04 +00:00 committed by Clinton Alexander
parent 07c5645be5
commit 3b989f366c
2 changed files with 3 additions and 4 deletions

View File

@ -191,11 +191,10 @@ class Node {
*/
private void installDependencies() {
def cordaJar = verifyAndGetCordaJar()
def cordappDeps = getCordappList()
def depsDir = new File(nodeDir, "dependencies")
def coreDeps = project.zipTree(cordaJar).getFiles().collect { it.getName() }
def appDeps = project.configurations.runtime.filter {
it != cordaJar && !cordappDeps.contains(it) && !coreDeps.contains(it.getName())
it != cordaJar && !project.configurations.cordapp.contains(it) && !coreDeps.contains(it.getName())
}
project.copy {
from appDeps
@ -250,7 +249,7 @@ class Node {
*/
private Collection<File> getCordappList() {
return project.configurations.cordapp.files {
cordapps.contains("${it.group}:${it.name}:${it.version}")
cordapps.contains(it.group + ":" + it.name + ":" + it.version)
}
}
}

View File

@ -1 +1 @@
gradlePluginsVersion=0.7.1
gradlePluginsVersion=0.8