From bb299de9e11b88561cf746bf14d381b95f63904f Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Mon, 10 Oct 2016 16:35:16 +0100 Subject: [PATCH] Further expanded example build.gradle. --- docs/source/creating-a-cordapp.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/source/creating-a-cordapp.rst b/docs/source/creating-a-cordapp.rst index 118adc4a65..a2839a1f72 100644 --- a/docs/source/creating-a-cordapp.rst +++ b/docs/source/creating-a-cordapp.rst @@ -176,6 +176,19 @@ To build against Corda and the plugins that cordapps use, update your build.grad // Sets the classes for Quasar to scan. Loaded by the the quasar-utils plugin. quasarScan.dependsOn('classes', ... your dependent subprojects...) + // Standard way to publish Cordapps to maven local with the maven-publish and publish-utils plugin. + publishing { + publications { + jarAndSources(MavenPublication) { + from components.java + // The two lines below are the tasks added by this plugin. + artifact sourceJar + artifact javadocJar + } + } + } + + Cordformation =============