Added documentation to the cordapp dependency builder and expanded the included dependencies.

This commit is contained in:
Clinton Alexander 2017-03-09 17:11:37 +00:00
parent c2b401682b
commit c972753bb9

View File

@ -122,8 +122,13 @@ dependencies {
runtime project(path: ":node:capsule", configuration: 'runtimeArtifacts')
runtime project(path: ":node:webserver:webcapsule", configuration: 'runtimeArtifacts')
// For the buildCordappDependenciesJar task
runtime project(':client')
runtime project(':core')
runtime project(':finance')
runtime project(':node:webserver')
testCompile project(':test-utils')
}
task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
@ -221,10 +226,15 @@ task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
task apidocs(dependsOn: ['dokka', 'dokkaJavadoc'])
task buildDependenciesZip(type: Zip) {
// Build a ZIP of all JARs required to compile the Cordapp template
// Note: corda.jar is used at runtime so no runtime ZIP is necessary.
// Resulting ZIP can be found in "build/distributions"
task buildCordappDependenciesZip(type: Zip) {
baseName 'corda-deps'
from configurations.runtime
from configurations.compile
from configurations.testCompile
from buildscript.configurations.classpath
from 'node/capsule/NOTICE' // CDDL notice
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}