可以在 deployNodes gradle 任务中使用 quasarExcludePackages 吗?
Can quasarExcludePackages be used within the deployNodes gradle task?
我试过将其与以下常量一起使用:
cordaReleaseGroup=net.corda
cordaCoreReleaseGroup=net.corda
cordaVersion=4.5.1
cordaCoreVersion=4.5.1
gradlePluginsVersion=5.0.9
kotlinVersion=1.2.71
junitVersion=4.12
quasarVersion=0.7.10
log4jVersion=2.11.2
platformVersion=5
slf4jVersion=1.7.25
... 与以下 deployNodes
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
nodeDefaults {
projectCordapp {
deploy = false
}
cordapp project(':contracts')
cordapp project(':workflows')
quasarExcludePackages = ["io.cordite.braid.libs**"]
}
Gradle 为 quasarExcludePackages
.
抛出 unknown property
的错误
您需要像这样通过额外配置添加它:
nodeDefaults {
projectCordapp {
deploy = false
}
cordapp project(':contracts')
cordapp project(':workflows')
extraConfig = ["quasarExcludePackages": ["io.cordite.braid.libs**"]]
}
我试过将其与以下常量一起使用:
cordaReleaseGroup=net.corda
cordaCoreReleaseGroup=net.corda
cordaVersion=4.5.1
cordaCoreVersion=4.5.1
gradlePluginsVersion=5.0.9
kotlinVersion=1.2.71
junitVersion=4.12
quasarVersion=0.7.10
log4jVersion=2.11.2
platformVersion=5
slf4jVersion=1.7.25
... 与以下 deployNodes
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
nodeDefaults {
projectCordapp {
deploy = false
}
cordapp project(':contracts')
cordapp project(':workflows')
quasarExcludePackages = ["io.cordite.braid.libs**"]
}
Gradle 为 quasarExcludePackages
.
unknown property
的错误
您需要像这样通过额外配置添加它:
nodeDefaults {
projectCordapp {
deploy = false
}
cordapp project(':contracts')
cordapp project(':workflows')
extraConfig = ["quasarExcludePackages": ["io.cordite.braid.libs**"]]
}