我正在按照https://docs.corda.net/releases/release-V1.0/deploying-a-node.html上的说明将网络映射添加到deployNodes
任务中
我的build.gradle
文件。但是当我运行gradlew deployNodes
时,出现以下错误。我已经尝试使用Cordform
插件版本3.1.0和3.2.1。我是否缺少任何需要完成的设置或其他设置?
FAILURE: Build failed with an exception.
* Where:
Build file '/home/ubuntu/corda/build.gradle' line: 103
* What went wrong:
A problem occurred evaluating root project 'corda'.
> Could not find method networkMap() for arguments on task ':deployNodes' of type net.corda.plugins.Cordform.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
答案 0 :(得分:0)
Corda 3删除了特殊网络映射节点的概念,该节点充当将网络映射分发给其他节点的角色。相反,网络映射现在是通过HTTP分发的签名NodeInfo
文件的集合。您可以了解有关此更改here的更多信息。
结果,networkMap
中的Cordform
选项不再存在。