0
votes

I want to connect to the Corda node using RPC. How can I include the CordApp Gradle project to my Spring one?

I found this (obligation-cordapp). But here the client is inside the Corda project and in my case, I have two Gradle projects. One CordApp and other Spring.

2

2 Answers

1
votes

See sample spring-webserver. see this link https://github.com/corda/samples/tree/release-V4/spring-webserver

This can help you what you want to achieve.

0
votes

you can include the cordapp and states jar in your spring client by adding the below lines inside the build.gradle file under dependencies

  cordapp "org:your-cordapp:$your_version"
  compile "org:your-contract-states:$your_version"//if needed