]> source.dussan.org Git - sonarqube.git/commitdiff
Fix publication
authorDavid Rautureau <david.rautureau@sonarsource.com>
Fri, 30 Mar 2018 15:11:38 +0000 (17:11 +0200)
committerJanos Gyerik <janos.gyerik@sonarsource.com>
Wed, 4 Apr 2018 12:40:50 +0000 (14:40 +0200)
18 files changed:
build.gradle
plugins/sonar-xoo-plugin/build.gradle
server/sonar-db-core/build.gradle
server/sonar-db-dao/build.gradle
server/sonar-db-migration/build.gradle
server/sonar-plugin-bridge/build.gradle
server/sonar-process/build.gradle
server/sonar-qa-util/build.gradle
server/sonar-server/build.gradle
sonar-application/build.gradle
sonar-core/build.gradle
sonar-home/build.gradle
sonar-markdown/build.gradle
sonar-plugin-api/build.gradle
sonar-scanner-engine/build.gradle
sonar-scanner-protocol/build.gradle
sonar-testing-harness/build.gradle
sonar-ws/build.gradle

index 361a5609158b61837d0b57b857766fccd98e9076..6b4311b54fb9c56a09850ed1e36eaccbdf781440 100644 (file)
@@ -40,79 +40,6 @@ allprojects {
   ext {
     release = project.hasProperty('release') && project.getProperty('release')
     official = project.hasProperty('official') && project.getProperty('official')
-    pomConfig = {
-      name projectTitle
-      description description
-      url 'http://www.sonarqube.org/'
-      organization {
-        name 'SonarSource'
-        url 'http://www.sonarsource.com'
-      }
-      licenses {
-        license {
-          name 'GNU LGPL 3'
-          url 'http://www.gnu.org/licenses/lgpl.txt'
-          distribution 'repo'
-        }
-      }
-      scm {
-        url 'https://github.com/SonarSource/sonarqube'
-      }
-      developers {
-        developer {
-          id 'bellingard'
-          name 'Fabrice Bellingard'
-        }
-        developer {
-          id 'dbolkensteyn'
-          name 'Dinesh Bolkensteyn'
-        }
-        developer {
-          id 'ehartmann'
-          name 'Eric Hartmann'
-        }
-        developer {
-          id 'fmallet'
-          name 'Freddy Mallet'
-        }
-        developer {
-          id 'Godin'
-          name 'Evgeny Mandrikov'
-        }
-        developer {
-          id 'henryju'
-          name 'Julien Henry'
-        }
-        developer {
-          id 'jblievremont'
-          name 'Jean-Baptiste Lievremont'
-        }
-        developer {
-          id 'julienlancelot'
-          name 'Julien Lancelot'
-        }
-        developer {
-          id 'olivier.gaudin'
-          name 'Olivier Gaudin'
-        }
-        developer {
-          id 'simonbrandhof'
-          name 'Simon Brandhof'
-        }
-        developer {
-          id 'sns-seb'
-          name 'Sebastien Lesaint'
-        }
-        developer {
-          id 'stas-vilchik'
-          name 'Stas Vilchik'
-        }
-        developer {
-          id 'teryk'
-          name 'Teryk Bellahsene'
-        }
-      }
-    }
   }
 
   repositories {
@@ -366,6 +293,86 @@ subprojects {
     }
     excludes(["**/*.txt", "**/*.properties", "**/*.xml", "**/*.xsd", "**/*.html", "**/*.json", "**/*.sql", "**/*.rb", "**/*.vm"])
   }
+
+  publishing {
+    publications {
+      mavenJava(MavenPublication) {
+        if (release) {
+          pom.withXml {
+            asNode().appendNode('name', projectTitle)
+            asNode().appendNode('description', description)
+            asNode().appendNode('url', 'http://www.sonarqube.org/')
+            
+            def organization = asNode().appendNode('organization')
+            organization.appendNode('name', 'SonarSource')
+            organization.appendNode('url', 'http://www.sonarsource.com')
+
+            def licenses = asNode().appendNode('licenses')
+            def license = licenses.appendNode('license')
+            license.appendNode('name', 'GNU LGPL 3')
+            license.appendNode('url', 'http://www.gnu.org/licenses/lgpl.txt')
+            license.appendNode('distribution', 'repo')
+
+            def scm = asNode().appendNode('scm')
+            scm.appendNode('url', 'https://github.com/SonarSource/sonarqube')
+
+            def developers = asNode().appendNode('developers')
+            def developer = developers.appendNode('developer')
+            developer.appendNode('id', 'bellingard')
+            developer.appendNode('name', 'Fabrice Bellingard')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'dbolkensteyn')
+            developer.appendNode('name', 'Dinesh Bolkensteyn')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'ehartmann')
+            developer.appendNode('name', 'Eric Hartmann')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'fmallet')
+            developer.appendNode('name', 'Freddy Mallet')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'Godin')
+            developer.appendNode('name', 'Evgeny Mandrikov')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'henryju')
+            developer.appendNode('name', 'Julien Henry')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'jblievremont')
+            developer.appendNode('name', 'Jean-Baptiste Lievremont')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'julienlancelot')
+            developer.appendNode('name', 'Julien Lancelot')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'olivier.gaudin')
+            developer.appendNode('name', 'Olivier Gaudin')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'simonbrandhof')
+            developer.appendNode('name', 'Simon Brandhof')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'sns-seb')
+            developer.appendNode('name', 'Sebastien Lesaint')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'stas-vilchik')
+            developer.appendNode('name', 'Stas Vilchik')
+
+            developer = developers.appendNode('developer')
+            developer.appendNode('id', 'teryk')
+            developer.appendNode('name', 'Teryk Bellahsene')
+          }
+        }
+      }
+    }
+  }
 }
 
 artifactory {
index df7a0be86c4b332b9e4d48720f9ff5c498817579..66c6d051b68d21473705f2d47179c4c3a15f64e2 100644 (file)
@@ -41,10 +41,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index 2548fbabbda8e385d5f33e8eace7b427f566189d..df83a0aeaacf465f032b37abe964f4f85c2939e4 100644 (file)
@@ -80,10 +80,6 @@ publishing {
         artifact sourcesJar
         artifact javadocJar
         artifact testJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index b0b2503f626fd2c331b4d6a645111cb8c3b754f6..f7103bceaae99fe5fe9b73fecf0a4fdd02d2557b 100644 (file)
@@ -59,10 +59,6 @@ publishing {
         artifact sourcesJar
         artifact javadocJar
         artifact testJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index b9adeee09cc780bce62e2239694426e482940a07..7360daec774288c8127b47a9593a772cd241be3c 100644 (file)
@@ -42,10 +42,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index 0ca7127f75dd75757cb7b600a9e3358ad0ba8f7f..d1fdaf049e87c8f1087728d63072143d3f88bcc5 100644 (file)
@@ -23,10 +23,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index 61a839aa3204248041258a1513f85e8250410720..862d121f0017d2eaebbf461a488fbde8cceda772 100644 (file)
@@ -38,10 +38,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index 2b65d26cbf6a0917b320053f41bd897061b90073..da6634f460cc5e59985e3cf340c4555b091d4f91 100644 (file)
@@ -25,10 +25,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index f61d09ed3822f10e21ebb9eda16725778ced5747..c88c09d48b3c8ca05f9b16333d107bdd3074f33b 100644 (file)
@@ -102,10 +102,6 @@ publishing {
         artifact sourcesJar
         artifact javadocJar
         artifact testJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index f77f329a5f127c3bd91282406712f6a45233eae9..3d1b7c3487305730f323015aefcc79352e1db695 100644 (file)
@@ -153,12 +153,6 @@ artifactoryPublish.skip = false
 publishing {
   publications {
     mavenJava(MavenPublication) {
-      if (release) {
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
-      }
       artifact zip
     }
   }
index 116afd59b8f18c6816f0839e20877788c7ee7326..a2d0f1bb1892198f2c7a565caf962b9069bc54db 100644 (file)
@@ -53,10 +53,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index cc994082307d8165c558d18969d83d730465471b..c4323e91133c5b4fd9656f4e3d24a1d0a54420f7 100644 (file)
@@ -26,10 +26,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index abbb5f8f042fde10ad349f2006bb3f42ecc65ead..ec958b2434c18b9f229ca1cab6f98bed20684c8d 100644 (file)
@@ -26,10 +26,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index 778dc84f88f788b3577b48f66f61c3896e6cde10..047cf35b69580c7b1fa8f8de1043be3e8cfd759b 100644 (file)
@@ -78,10 +78,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index 3970816b0d0a08e5fef40cf1ac2c1a5d37e0cf24..c7d662c821d39a8543e3585ea0111eb1a42b4cde 100644 (file)
@@ -60,10 +60,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index 999db37701b935340de964aedac3ecbc6452069d..788ab75e8c48dcd1a24da0964d394da2ca26bf66 100644 (file)
@@ -31,10 +31,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index 9cf1837d8f54dfb9ffcb15d49c8565e58acebc97..f6493bcca95ca4ae78d8d879c8813e2f07b285a6 100644 (file)
@@ -27,10 +27,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }
index 8b8f4c576e26266c0931034205ce7aa440fca9f0..6f8aa85142673ca613fd5f8f099ac13dd163ef44 100644 (file)
@@ -37,10 +37,6 @@ publishing {
       if (release) {
         artifact sourcesJar
         artifact javadocJar
-        pom.withXml {
-          asNode().appendNode('description', description)
-          asNode().children().last() + pomConfig
-        }
       }
     }
   }