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