From 7befc3ba7ab50300d1f2cd3270f5d35838543bcc Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Fri, 24 Feb 2017 16:15:30 +0000 Subject: [PATCH] Added a new gradle task to output a JAR with all runtime and compile dependencies in it. --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index 3b4f6e59cd..9380fdc088 100644 --- a/build.gradle +++ b/build.gradle @@ -119,8 +119,11 @@ repositories { dependencies { compile project(':node') compile "com.google.guava:guava:$guava_version" + runtime project(path: ":node:capsule", configuration: 'runtimeArtifacts') runtime project(path: ":node:webserver:webcapsule", configuration: 'runtimeArtifacts') + runtime project(':client') + runtime project(':core') } task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) { @@ -217,3 +220,10 @@ task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) { } task apidocs(dependsOn: ['dokka', 'dokkaJavadoc']) + +task buildDependenciesJar(type: Jar) { + baseName 'corda-deps' + from configurations.runtime + from configurations.compile + duplicatesStrategy = DuplicatesStrategy.EXCLUDE +}