Matthew Layton
Matthew Layton

Reputation: 42390

Corda - gradle dependencies: compile, cordaCompile or cordapp?

What is the difference between

For example:

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
    cordaCompile "$corda_release_group:corda-core:$corda_release_version"
    cordapp project(":workflows")
}

Upvotes: 1

Views: 215

Answers (1)

manish
manish

Reputation: 331

cordaCompile indicate dependencies that should not be included in the CorDapp JAR. These configurations should be used for any Corda dependency (e.g. corda-core, corda-node) in order to prevent a dependency from being included twice (once in the CorDapp JAR and once in the Corda JARs).

compile indicates dependencies should be included with Cordapp.

cordapp project use this if the other CorDapp is defined in a module in the same project ,otherwise, cordapp "net.corda:another-cordapp:1.0"

Upvotes: 4

Related Questions