Add license header file and fix checkstyle (#2)
diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml
index 5927731..1447b34 100644
--- a/.github/workflows/unit-test.yaml
+++ b/.github/workflows/unit-test.yaml
@@ -84,7 +84,7 @@
- name: Build pulsar adapters
run: |
cd adapters
- mvn clean license:check install
+ mvn clean license:check checkstyle:check install
- name: package surefire artifacts
if: failure()
diff --git a/presto-distribution/pom.xml b/presto-distribution/pom.xml
index f585ea0..2aee92e 100644
--- a/presto-distribution/pom.xml
+++ b/presto-distribution/pom.xml
@@ -339,7 +339,7 @@
<artifactId>license-maven-plugin</artifactId>
<version>3.0</version>
<configuration>
- <header>../../src/license-header.txt</header>
+ <header>../src/license-header.txt</header>
</configuration>
</plugin>
<plugin>
@@ -349,6 +349,13 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
</plugins>
<extensions>
<extension>
diff --git a/src/license-header.txt b/src/license-header.txt
new file mode 100644
index 0000000..60b675e
--- /dev/null
+++ b/src/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
+
+ 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.