From 4cdb4352b6680bb6c529bf3f4e11d8aff043ea8a Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Wed, 28 Sep 2016 13:46:00 +0100 Subject: [PATCH] Added corda capsule to output of publish. --- build.gradle | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/build.gradle b/build.gradle index e5cd97eb1d..14254a4b86 100644 --- a/build.gradle +++ b/build.gradle @@ -244,4 +244,21 @@ task installTemplateNodes(dependsOn: 'buildCordaJAR') << { into "${buildDir}/nodes" } +} + +task cordaJar(type: Jar, dependsOn: 'buildCordaJAR') { + classifier = 'sources' + from buildCordaJAR.outputs.getFiles() +} + +// TODO: Rename capsule to "corda" +publishing { + publications { + corda(MavenPublication) { + from components.java + artifactId 'corda' + + artifact buildCordaJAR + } + } } \ No newline at end of file