From d704a3bb4a1df1578be25df23a8db4f780e8c504 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 6 Jul 2010 23:56:31 +0100 Subject: [PATCH] Prevent source jars from being included in the gradle 'default' configuration and thus being included as dependencies in war files etc. --- gradle/maven.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gradle/maven.gradle b/gradle/maven.gradle index 6f5b31b294..5702d6a753 100644 --- a/gradle/maven.gradle +++ b/gradle/maven.gradle @@ -14,6 +14,12 @@ artifacts { archives sourceJar } +// Remove the archive configuration from the runtime configuration, so that anything added to archives +// (such as the source jar) is no longer included in the runtime classpath +configurations.default.extendsFrom = [configurations.runtime] as Set +// Add the main jar into the default configuration +artifacts { 'default' jar } + dependencies { deployerJars "org.springframework.build.aws:org.springframework.build.aws.maven:3.0.0.RELEASE" }