mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
47068e6b7a
* Upgrade gradle plugin; add target version attribute to finance and sample cordapps. * Remove '-SNAPSHOT' from gradlePluginsVersion. * Fix naming. * Update docs. * Respond to feedback. * Fix irs demo * Fix more samples * Fix more samples * Fix deployNodes * Fix deployNodes * more fixes * fix simm valuation * more fixes * more fixes * more fixes * more fixes * Publication should have *nothing* to do with cordformation and deployNodes. Remove it! And if this exposes a bug then "so be it". * Disable CorDapp signing for Cordapp Configuration and Network Verifier. * Disable CorDapp signing for SIMM Valuation Demo. * Remove remaining publishing nonsense from samples. * Workarounds fpr cordapp-configuration, network-verifier and simm-valuation-demo: JarSigner rejects jars with duplicates inside, so remove them. * Upgrade to Gradle plugin 4.0.32 and reenable CorDapp signing for samples. |
||
---|---|---|
.. | ||
src | ||
build.gradle | ||
README.md |
Cordapp Configuration Sample
This sample shows a simple example of how to use per-cordapp configuration. It includes;
- A configuration file
- Gradle build file to show how to install your Cordapp configuration
- A flow that consumes the Cordapp configuration
To run from the command line in Unix:
- Run
./gradlew samples:cordapp-configuration:deployNodes
to create a set of configs and installs undersamples/cordapp-configuration/build/nodes
- Run
./samples/cordapp-configuration/build/nodes/runnodes
to open up three new terminals with the three nodes - At the shell prompt for Bank A or Bank B run
start net.corda.configsample.GetStringConfigFlow configKey: someStringValue
. This will start the flow and read thesomeStringValue
CorDapp config.
To run from the command line in Windows:
- Run
gradlew samples:cordapp-configuration:deployNodes
to create a set of configs and installs undersamples\cordapp-configuration\build\nodes
- Run
samples\cordapp-configuration\build\nodes\runnodes
to open up three new terminals with the three nodes - At the shell prompt for Bank A or Bank B run
start net.corda.configsample.GetStringConfigFlow configKey: someStringValue
. This will start the flow and read thesomeStringValue
CorDapp config.