在build.gradle中,compile和cordacompile有什么区别 [英] In the build.gradle, what are the differences between the compile and cordacompile
问题描述
在build.gradle文件中,您具有运行Corda节点所需的依赖项列表,是否有与软件包相关的每个不同功能的文档?现在有
in the build.gradle file, you have a list of dependencies which you need to run he Corda node, are there documentations on each of the different functions associated with the packages? Right now there are
dependencies {
compile ...
testCompile ...
cordaCompile ...
cordaRuntime ...
}
有什么区别(特别是在编译与cordaCompile之间)?
What are the differences (in particular to the compile vs cordaCompile)?
推荐答案
根据 cordformation和cordapp插件添加了两个新的gradle配置:
The cordformation and cordapp plugins add two new gradle configurations:
-
cordaCompile
扩展了compile
-
cordaRuntime
扩展了runtime
cordaCompile
which extendscompile
cordaRuntime
which extendsruntime
cordaCompile
和 cordaRuntime
表示应不包含在CorDapp JAR中的依赖项.
cordaCompile
and cordaRuntime
indicate dependencies that should not be included in the CorDapp JAR.
这些配置应用于任何Corda依赖项(例如corda-core,corda-node),以防止两次包含依赖项(在CorDapp JAR中一次,在Corda JAR中一次).
These configurations should be used for any Corda dependency (e.g. corda-core, corda-node) in order to prevent a dependency from being included twice (once in the CorDapp JAR and once in the Corda JARs).
cordapp
插件应应用于将构建cordapp的任何项目
The cordapp
plugin should be applied to any project that will be building a cordapp
和 cordformation
插件应应用于希望在本地创建小型测试网络的项目.
and the cordformation
plugin should be applied to projects that wish to create small testing networks locally.
这篇关于在build.gradle中,compile和cordacompile有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!