From a70aa466e5d5b198958ea015f3b22467227d5b2c Mon Sep 17 00:00:00 2001 From: David Rautureau Date: Wed, 28 Mar 2018 12:37:09 +0200 Subject: BUILD-630 Generate javadoc ad sources jars with Gradle only on release branches --- sonar-markdown/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sonar-markdown') diff --git a/sonar-markdown/build.gradle b/sonar-markdown/build.gradle index 7b46ac42b1f..ec958b2434c 100644 --- a/sonar-markdown/build.gradle +++ b/sonar-markdown/build.gradle @@ -23,8 +23,10 @@ publishing { publications { mavenJava(MavenPublication) { from components.java - artifact sourcesJar - artifact javadocJar + if (release) { + artifact sourcesJar + artifact javadocJar + } } } } -- cgit v1.2.3