aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-markdown
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-markdown')
-rw-r--r--sonar-markdown/build.gradle6
1 files changed, 4 insertions, 2 deletions
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
+ }
}
}
}