aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/build.gradle
diff options
context:
space:
mode:
authorDavid Rautureau <david.rautureau@sonarsource.com>2018-03-19 17:48:38 +0100
committerJanos Gyerik <janos.gyerik@sonarsource.com>2018-04-04 14:25:33 +0200
commita26706fb2cb83f0a5a8e5d888b443be0568940e9 (patch)
treed428dd347c8e62ae4e831976709deb4cdc471607 /sonar-plugin-api/build.gradle
parenta70aa466e5d5b198958ea015f3b22467227d5b2c (diff)
downloadsonarqube-a26706fb2cb83f0a5a8e5d888b443be0568940e9.tar.gz
sonarqube-a26706fb2cb83f0a5a8e5d888b443be0568940e9.zip
BUILD-621 Inject some configuration in POM generated by Gradle to allow publication to Maven Central
Diffstat (limited to 'sonar-plugin-api/build.gradle')
-rw-r--r--sonar-plugin-api/build.gradle4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-plugin-api/build.gradle b/sonar-plugin-api/build.gradle
index 047cf35b695..af481d0d5ad 100644
--- a/sonar-plugin-api/build.gradle
+++ b/sonar-plugin-api/build.gradle
@@ -74,6 +74,10 @@ artifactoryPublish.skip = false
publishing {
publications {
mavenJava(MavenPublication) {
+ pom.withXml {
+ asNode().appendNode('description', description)
+ asNode().children().last() + pomConfig
+ }
artifact source: shadowJar, classifier: null
if (release) {
artifact sourcesJar