Siddhartha Sengupta
Siddhartha Sengupta

Reputation: 96

How to create the corda.jar?

When I build the corda project locally, I find a corda-4.1-corda.jar. Is that basically the same as the corda.jar file produced when node directories are generated by the cordformation plugin? Can I replace the latter by the former, after renaming it, in a deployment?

Upvotes: 0

Views: 226

Answers (2)

Siddhartha Sengupta
Siddhartha Sengupta

Reputation: 96

Run ./gradlew clean build -x test from the root directory. Once the process finishes, the jar is produced in the corda/node/capsule/build/libs/ directory as corda-<version>.jar.

Upvotes: 0

Peter Li
Peter Li

Reputation: 1032

Once your dependencies are set correctly, you can build your CorDapp JAR(s) using the Gradle jar task

Unix/Mac OSX: ./gradlew jar Windows: gradlew.bat jar

Upvotes: 2

Related Questions