Skip to content

Commit

Permalink
omnij-cli/build.gradle: use mainClass instead of deprecated main
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Sep 28, 2023
1 parent 96dc1cc commit 0bc6d1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omnij-cli/build.gradle
Original file line number Diff line number Diff line change
@@ -119,14 +119,14 @@ def currencyID = 1

tasks.register('getCoreConsensus', JavaExec) {
dependsOn 'classes'
main = 'foundation.omni.consensus.OmniCoreConsensusTool'
mainClass = 'foundation.omni.consensus.OmniCoreConsensusTool'
args = [currencyID, 'build/mastercore_consensus.txt']
classpath = sourceSets.main.runtimeClasspath
}

tasks.register('getOmniConsensus', JavaExec) {
dependsOn 'classes'
main = 'foundation.omni.consensus.OmniwalletConsensusTool'
mainClass = 'foundation.omni.consensus.OmniwalletConsensusTool'
args = [currencyID, 'build/omniwallet_consensus.txt']
classpath = sourceSets.main.runtimeClasspath
}
@@ -140,7 +140,7 @@ tasks.register('getConsensus') {

tasks.register('runOmniConsensusCLI', JavaExec) {
dependsOn 'classes'
main = 'foundation.omni.cli.ConsensusCLI'
mainClass = 'foundation.omni.cli.ConsensusCLI'
args = ['-regtest', '-rpcwait', '-rpcconnect=127.0.0.1', "-property=${currencyID}"]
classpath = sourceSets.main.runtimeClasspath
}

0 comments on commit 0bc6d1c

Please sign in to comment.