Merge "Add Apache license header per file"
authorAndy Mayer <am803u@att.com>
Mon, 9 Apr 2018 11:43:52 +0000 (11:43 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 9 Apr 2018 11:43:52 +0000 (11:43 +0000)
1  2 
pom.xml

diff --combined pom.xml
+++ b/pom.xml
@@@ -1,9 -1,27 +1,27 @@@
  <?xml version="1.0" encoding="UTF-8"?>
+ <!--
+         Copyright (c) 2017 Orange.  All rights reserved.
+         Licensed under the Apache License, Version 2.0 (the "License");
+         you may not use this file except in compliance with the License.
+         You may obtain a copy of the License at
+             http://www.apache.org/licenses/LICENSE-2.0
+         Unless required by applicable law or agreed to in writing, software
+         distributed under the License is distributed on an "AS IS" BASIS,
+         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+         See the License for the specific language governing permissions and
+         limitations under the License.
+ -->
  <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>
  
 -      <groupId>org.onap.nbi</groupId>
 +      <groupId>org.onap.externalapi-nbi</groupId>
        <artifactId>nbi-rest-services</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <packaging>jar</packaging>
                                        </dependency>
                                </dependencies>
                        </plugin>
+                       <plugin>
+                               <groupId>com.mycila</groupId>
+                               <artifactId>license-maven-plugin</artifactId>
+                               <version>3.0</version>
+                               <configuration>
+                                       <header>LICENSE.TXT</header>
+                                       <includes>
+                                               <include>src/main/java/**</include>
+                                               <include>src/test/java/**</include>
+                                               <include>pom.xml</include>
+                                       </includes>
+                                       <skipExistingHeaders>true</skipExistingHeaders>
+                                       <skip>false</skip>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <!-- Set goal to "format" to auto update license headers -->
+                                                       <goal>check</goal>
+                                               </goals>
+                                               <phase>process-sources</phase>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
        </build>
  </project>