diff options
Diffstat (limited to 'sonar-ws/build.gradle')
-rw-r--r-- | sonar-ws/build.gradle | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-ws/build.gradle b/sonar-ws/build.gradle index 4080e7048a5..6f8aa851426 100644 --- a/sonar-ws/build.gradle +++ b/sonar-ws/build.gradle @@ -34,8 +34,10 @@ publishing { publications { mavenJava(MavenPublication) { from components.java - artifact sourcesJar - artifact javadocJar + if (release) { + artifact sourcesJar + artifact javadocJar + } } } } |