You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2022/10/13 20:11:21 UTC

[accumulo-testing] branch main updated: Automate license header updates (#244)

This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo-testing.git


The following commit(s) were added to refs/heads/main by this push:
     new f334b57  Automate license header updates (#244)
f334b57 is described below

commit f334b571dd31e827a15c699649f9b6b7da4885cd
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Thu Oct 13 16:11:16 2022 -0400

    Automate license header updates (#244)
---
 contrib/license-header.txt                         | 16 ++++++
 .../{QUICKSTART => QUICKSTART.md}                  |  0
 pom.xml                                            | 65 +++++++++++++++++++++-
 test/merkle-replication/{README => README.md}      |  0
 4 files changed, 80 insertions(+), 1 deletion(-)

diff --git a/contrib/license-header.txt b/contrib/license-header.txt
new file mode 100644
index 0000000..f808223
--- /dev/null
+++ b/contrib/license-header.txt
@@ -0,0 +1,16 @@
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you 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
+
+  https://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.
diff --git a/contrib/terraform-testing-infrastructure/QUICKSTART b/contrib/terraform-testing-infrastructure/QUICKSTART.md
similarity index 100%
rename from contrib/terraform-testing-infrastructure/QUICKSTART
rename to contrib/terraform-testing-infrastructure/QUICKSTART.md
diff --git a/pom.xml b/pom.xml
index 1237cb6..f2c8dc6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
   <parent>
     <groupId>org.apache</groupId>
     <artifactId>apache</artifactId>
-    <version>26</version>
+    <version>27</version>
   </parent>
   <groupId>org.apache.accumulo</groupId>
   <artifactId>accumulo-testing</artifactId>
@@ -118,6 +118,56 @@
   <build>
     <pluginManagement>
       <plugins>
+        <!-- check for version updates with 'mvn versions:display-plugin-updates' -->
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>versions-maven-plugin</artifactId>
+          <version>2.11.0</version>
+        </plugin>
+        <plugin>
+          <groupId>com.mycila</groupId>
+          <artifactId>license-maven-plugin</artifactId>
+          <version>4.1</version>
+          <configuration>
+            <header>${session.executionRootDirectory}/contrib/license-header.txt</header>
+            <excludes combine.children="append">
+              <exclude>**/DEPENDENCIES</exclude>
+              <exclude>**/LICENSE</exclude>
+              <exclude>**/NOTICE</exclude>
+              <exclude>**/target/**</exclude>
+              <exclude>**/lib/data/**</exclude>
+            </excludes>
+            <mapping combine.children="append">
+              <!-- general mappings; module-specific mappings appear in their respective pom -->
+              <!-- individual files; it'd be better if most of these were renamed to end in .sh -->
+              <Makefile>SCRIPT_STYLE</Makefile>
+              <agitator>SCRIPT_STYLE</agitator>
+              <build>SCRIPT_STYLE</build>
+              <cingest>SCRIPT_STYLE</cingest>
+              <docker-entry>SCRIPT_STYLE</docker-entry>
+              <gcs>SCRIPT_STYLE</gcs>
+              <mapred>SCRIPT_STYLE</mapred>
+              <monitor>SCRIPT_STYLE</monitor>
+              <performance>SCRIPT_STYLE</performance>
+              <readers>SCRIPT_STYLE</readers>
+              <rwalk>SCRIPT_STYLE</rwalk>
+              <writers>SCRIPT_STYLE</writers>
+              <!-- extensions -->
+              <c>SLASHSTAR_STYLE</c>
+              <cc>SLASHSTAR_STYLE</cc>
+              <conf>SCRIPT_STYLE</conf>
+              <css>SLASHSTAR_STYLE</css>
+              <example>SCRIPT_STYLE</example>
+              <h>SLASHSTAR_STYLE</h>
+              <java>SLASHSTAR_STYLE</java>
+              <proto>SLASHSTAR_STYLE</proto>
+              <tf>SCRIPT_STYLE</tf>
+              <tftpl>SCRIPT_STYLE</tftpl>
+              <thrift>SLASHSTAR_STYLE</thrift>
+              <uno>SCRIPT_STYLE</uno>
+            </mapping>
+          </configuration>
+        </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-javadoc-plugin</artifactId>
@@ -291,6 +341,19 @@
               </execution>
             </executions>
           </plugin>
+          <plugin>
+            <groupId>com.mycila</groupId>
+            <artifactId>license-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>license-headers</id>
+                <goals>
+                  <goal>format</goal>
+                </goals>
+                <phase>process-test-resources</phase>
+              </execution>
+            </executions>
+          </plugin>
           <plugin>
             <groupId>net.revelc.code.formatter</groupId>
             <artifactId>formatter-maven-plugin</artifactId>
diff --git a/test/merkle-replication/README b/test/merkle-replication/README.md
similarity index 100%
rename from test/merkle-replication/README
rename to test/merkle-replication/README.md