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