mirror of
https://github.com/corda/corda.git
synced 2024-12-21 05:53:23 +00:00
Cordformation now correctly includes and excludes cordapps.
This commit is contained in:
parent
07c5645be5
commit
3b989f366c
@ -191,11 +191,10 @@ class Node {
|
|||||||
*/
|
*/
|
||||||
private void installDependencies() {
|
private void installDependencies() {
|
||||||
def cordaJar = verifyAndGetCordaJar()
|
def cordaJar = verifyAndGetCordaJar()
|
||||||
def cordappDeps = getCordappList()
|
|
||||||
def depsDir = new File(nodeDir, "dependencies")
|
def depsDir = new File(nodeDir, "dependencies")
|
||||||
def coreDeps = project.zipTree(cordaJar).getFiles().collect { it.getName() }
|
def coreDeps = project.zipTree(cordaJar).getFiles().collect { it.getName() }
|
||||||
def appDeps = project.configurations.runtime.filter {
|
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 {
|
project.copy {
|
||||||
from appDeps
|
from appDeps
|
||||||
@ -250,7 +249,7 @@ class Node {
|
|||||||
*/
|
*/
|
||||||
private Collection<File> getCordappList() {
|
private Collection<File> getCordappList() {
|
||||||
return project.configurations.cordapp.files {
|
return project.configurations.cordapp.files {
|
||||||
cordapps.contains("${it.group}:${it.name}:${it.version}")
|
cordapps.contains(it.group + ":" + it.name + ":" + it.version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
gradlePluginsVersion=0.7.1
|
gradlePluginsVersion=0.8
|
||||||
|
Loading…
Reference in New Issue
Block a user