]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8445 create maven module sonar-db-migration
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 7 Dec 2016 10:09:50 +0000 (11:09 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 14 Dec 2016 11:11:51 +0000 (12:11 +0100)
pom.xml
server/pom.xml
server/sonar-db-migration/pom.xml [new file with mode: 0644]
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/package-info.java [new file with mode: 0644]
server/sonar-server/pom.xml
sonar-db/pom.xml

diff --git a/pom.xml b/pom.xml
index 9cf46f16de78e5534719b8a66ceceab9f6a2dcdf..8b59ab99dcefc47a4d4f6bad826305e070fd871c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <artifactId>sonar-db</artifactId>
         <version>${project.version}</version>
       </dependency>
+      <dependency>
+        <groupId>${project.groupId}</groupId>
+        <artifactId>sonar-db-migration</artifactId>
+        <version>${project.version}</version>
+      </dependency>
       <dependency>
         <groupId>${project.groupId}</groupId>
         <artifactId>sonar-scanner-protocol</artifactId>
index a1cfe69c6025c31ca2e2881c68506b8b4be8183f..87b5b722840b0b2ed702e3b3d0653215a69858cb 100644 (file)
@@ -14,6 +14,7 @@
     <module>sonar-process</module>
     <module>sonar-process-monitor</module>
     <module>sonar-search</module>
+    <module>sonar-db-migration</module>
     <module>sonar-server</module>
     <module>sonar-ce</module>
     <module>sonar-plugin-bridge</module>
diff --git a/server/sonar-db-migration/pom.xml b/server/sonar-db-migration/pom.xml
new file mode 100644 (file)
index 0000000..9ece9a0
--- /dev/null
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.sonarsource.sonarqube</groupId>
+    <artifactId>server</artifactId>
+    <version>6.3-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>sonar-db-migration</artifactId>
+
+  <name>SonarQube :: Database Migration</name>
+  <description>Create SonarQube schema</description>
+  
+  <dependencies>
+
+    <!-- tests -->
+
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <skipTests>${skipServerTests}</skipTests>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+  </profiles>
+</project>
diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/package-info.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/package-info.java
new file mode 100644 (file)
index 0000000..e3dd173
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2016 SonarSource SA
+ * mailto:contact AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+@ParametersAreNonnullByDefault
+package org.sonar.server.platform.db.migration;
+
+import javax.annotation.ParametersAreNonnullByDefault;
+
index beb44f2d4714eddeebf4cd9a4ea1383556fb2ac8..e420e95efeea0750a22ddf0dc86cdf1c6ea722a4 100644 (file)
       <groupId>${project.groupId}</groupId>
       <artifactId>sonar-db</artifactId>
     </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>sonar-db-migration</artifactId>
+    </dependency>
     <dependency>
       <groupId>${project.groupId}</groupId>
       <artifactId>sonar-scanner-protocol</artifactId>
index 50cc1c92fa5ab093c0c62f411adc6e90af25dac5..86626942ed5eb57539078bda07ba30e06d197f14 100644 (file)
@@ -11,7 +11,7 @@
   <artifactId>sonar-db</artifactId>
 
   <name>SonarQube :: Database</name>
-  <description>Create and request SonarQube schema</description>
+  <description>Request SonarQube schema</description>
   
   <properties>
     <sonar.exclusions>target/generated-sources/**</sonar.exclusions>