-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cordformation Plugin - Kotlin DSL #403
Comments
Hi, thanks for reporting this. I think the real problem here is that |
See how the modified tasks.register<Cordform>("deployNodes") {
dependsOn.add("jar")
val notaryConfig = mapOf("validating" to false)
val rpcUsersConfig = listOf(
mapOf(
"user" to "user1",
"password" to "test",
"permissions" to listOf("ALL")
)
)
nodeDefaults {
projectCordapp {
deploy = false
}
runSchemaMigration = true
}
node {
name("O=Notary,L=London,C=GB")
p2pPort(60000)
notary = notaryConfig
rpcSettings {
address("localhost:60001")
adminAddress("localhost:60002")
}
}
node {
name("O=party1,L=London,C=GB")
p2pPort(10000)
rpcSettings {
address("localhost:10001")
adminAddress("localhost:10002")
}
rpcUsers = rpcUsersConfig
}
} |
This will be part of the 5.0.14 release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I managed to create a
deployNodes
task in Kotlin DSL following the examples from the corda examples repo. See the following example:This works fine. The only issue is that I can not use the
nodeDefaults
field because it has a protected setter.See: Baseform.kt
If there is no reason why this setter should stay protected, I can provide a pull request which makes it public.
The text was updated successfully, but these errors were encountered: