我在我的build.gradle文件中添加了database.runmigration: true
,但是在运行deployNodes时遇到此错误。是什么原因造成的?
[ERROR] 14:05:21+0200 [main] subcommands.ValidateConfigurationCli.logConfigurationErrors$node - Error(s) while parsing node configuration:
- for path: "database.runmigration": Unknown property 'runmigration'
这是我的build.gradle的deployNode任务
task deployNodes(type: net.corda.plugins.Cordform,dependsOn: ['jar']) {
directory "./build/nodes"
ext.drivers = ['.jdbc_driver']
ext.extraconfig = [
'dataSourceProperties.dataSourceclassname' : "org.postgresql.ds.PGSimpleDataSource",'dataSourceProperties.dataSource.user' : "corda",'dataSourceProperties.dataSource.password' : "corda1234",'database.transactionIsolationLevel' : 'READ_COMMITTED','database.runmigration' : "true"
]
nodeDefaults {
projectCordapp {
deploy = false
}
cordapp project(':cordapp-contracts-states')
cordapp project(':cordapp')
}
node {
name "O=HUS,L=Helsinki,C=FI"
p2pPort 10008
rpcSettings {
address "localhost:10009"
adminAddress "localhost:10049"
}
webPort 10017
rpcUsers = [[ user: "user1","password": "test","permissions": ["ALL"]]]
extraconfig = ext.extraconfig + [
'dataSourceProperties.dataSource.url' :
"jdbc:postgresql://localhost:5432/hus_db?currentSchema=corda_schema"
]
drivers = ext.drivers
}
}