diff --git a/constants.properties b/constants.properties index 8f38d6e077..362f68a1af 100644 --- a/constants.properties +++ b/constants.properties @@ -1,3 +1,3 @@ -gradlePluginsVersion=0.10.2 +gradlePluginsVersion=0.10.3 kotlinVersion=1.1.1 guavaVersion=21.0 diff --git a/docs/source/creating-a-cordapp.rst b/docs/source/creating-a-cordapp.rst index 98d551d1d5..d3c977089b 100644 --- a/docs/source/creating-a-cordapp.rst +++ b/docs/source/creating-a-cordapp.rst @@ -202,6 +202,7 @@ is a three node example; p2pPort 10002 rpcPort 10003 webPort 10004 + h2Port 11002 cordapps [] } node { @@ -211,6 +212,7 @@ is a three node example; p2pPort 10005 rpcPort 10006 webPort 10007 + h2Port 11005 cordapps [] } node { @@ -220,6 +222,7 @@ is a three node example; p2pPort 10008 rpcPort 10009 webPort 10010 + h2Port 11008 cordapps [] } } diff --git a/gradle-plugins/cordformation/src/main/groovy/net/corda/plugins/Node.groovy b/gradle-plugins/cordformation/src/main/groovy/net/corda/plugins/Node.groovy index a4d9a22976..3c78f17b12 100644 --- a/gradle-plugins/cordformation/src/main/groovy/net/corda/plugins/Node.groovy +++ b/gradle-plugins/cordformation/src/main/groovy/net/corda/plugins/Node.groovy @@ -75,6 +75,13 @@ class Node { config = config.withValue("useHTTPS", ConfigValueFactory.fromAnyRef(isHttps)) } + /** + * Sets the H2 port for this node + */ + void h2Port(Integer h2Port) { + config = config.withValue("h2port", ConfigValueFactory.fromAnyRef(h2Port)) + } + void useTestClock(Boolean useTestClock) { config = config.withValue("useTestClock", ConfigValueFactory.fromAnyRef(useTestClock)) }