我们如何将Corda Finance Currencies作为依赖项包括在内?

时间:2019-04-25 15:56:32

标签: gradle dependencies build.gradle corda

现在,Corda金融罐已被划分为corda-finance合同和corda-finance-workflow,如何使用build.gradle中的deployNodes任务将corda-finance-currencies添加到CorDapp?

现在,当我尝试部署时,出现以下错误消息:

Attempted to find dependent attachment for class net/corda/finance/Currencies, but could not find a suitable candidate.

2 个答案:

答案 0 :(得分:1)

您是否正确导入corda-finance-workflow?上课的时候在这里:

enter image description here

答案 1 :(得分:0)

我遇到了同样的问题,但是对于“正确导入corda-finance-workflows”是什么,答案还不是很清楚。是。

我的deployNode配置看起来像这样,但似乎不起作用:


task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
    delete "./build/nodes"
    directory "./build/nodes"

    signing {
        enabled false
    }

    nodeDefaults {
        cordapp("$corda_release_distribution:corda-finance-contracts:$corda_release_version")
        cordapp("$corda_release_distribution:corda-finance-workflows:$corda_release_version")
    }
...