]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8457 upgrade sonarsource-branding
authorStas Vilchik <vilchiks@gmail.com>
Thu, 2 Feb 2017 12:48:37 +0000 (13:48 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 2 Feb 2017 12:48:48 +0000 (13:48 +0100)
server/sonar-web/pom.xml

index 53c1bbcaaadb02265f4a967785785bc914e20c55..0b81a4f67754f7daf68650fb6580a3c3e97bee31 100644 (file)
@@ -19,7 +19,7 @@
     <sonar.exclusions>src/main/js/libs/third-party/**/*,src/main/js/libs/require.js,src/main/js/**/__tests__/**</sonar.exclusions>
     <yarn.script>build</yarn.script>
   </properties>
-  
+
   <build>
     <resources>
       <resource>
           </plugin>
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-war-plugin</artifactId>
+            <artifactId>maven-dependency-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>copy-branding</id>
+                <phase>initialize</phase>
+                <goals>
+                  <goal>unpack</goal>
+                </goals>
+              </execution>
+            </executions>
             <configuration>
-              <overlays>
-                <overlay>
+              <artifactItems>
+                <artifactItem>
                   <groupId>com.sonarsource</groupId>
                   <artifactId>sonarsource-branding</artifactId>
-                  <!-- branding resources are added first -->
-                  <excludes>
-                    <exclude>META-INF/**/*</exclude>
-                  </excludes>
-                </overlay>
-                <overlay>
-                  <!-- empty groupId/artifactId represents the current build => branding not overwritten -->
-                </overlay>
-              </overlays>
+                  <type>war</type>
+                  <overWrite>true</overWrite>
+                  <outputDirectory>${project.basedir}</outputDirectory>
+                  <includes>**/*.js,**/*.svg</includes>
+                </artifactItem>
+              </artifactItems>
             </configuration>
           </plugin>
           <plugin>
         <dependency>
           <groupId>com.sonarsource</groupId>
           <artifactId>sonarsource-branding</artifactId>
-          <version>1.2</version>
+          <version>1.3.0.304</version>
           <type>war</type>
           <scope>runtime</scope>
         </dependency>