Skip to content

Commit 612fd4d

Browse files
Add missing license headers, add rat plugin (#200)
1 parent 33b88d5 commit 612fd4d

File tree

4 files changed

+54
-12
lines changed

4 files changed

+54
-12
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
key: ${{ runner.os }}-${{ matrix.scala }}-${{ matrix.spark }}-${{ hashFiles('**/pom.xml') }}
2929
restore-keys: |
3030
${{ runner.os }}-${{ matrix.scala }}-${{ matrix.spark }}-
31+
- name: License check
32+
run: mvn clean validate -Plicense-check,spark-2,spark-3,scala-2.12
3133
- name: Switch scala version
3234
run: mvn scala-cross-build:change-version -Pscala-${{ matrix.scala }},spark-${{ matrix.spark }}
3335
- name: Build and run tests

deploy.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
#!/bin/bash
2+
#
3+
# Copyright 2018 ABSA Group Limited
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
217
set -e
318

419
# CHECK INPUTS

pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,5 +259,32 @@
259259
</plugins>
260260
</build>
261261
</profile>
262+
<profile>
263+
<id>license-check</id>
264+
<build>
265+
<plugins>
266+
<plugin>
267+
<groupId>org.apache.rat</groupId>
268+
<artifactId>apache-rat-plugin</artifactId>
269+
<version>0.13</version>
270+
<executions>
271+
<execution>
272+
<phase>validate</phase>
273+
<goals>
274+
<goal>check</goal>
275+
</goals>
276+
</execution>
277+
</executions>
278+
<configuration>
279+
<excludes>
280+
<exclude>**/build.yml</exclude>
281+
<exclude>.editorconfig</exclude>
282+
<exclude>**/*.MockMaker</exclude>
283+
</excludes>
284+
</configuration>
285+
</plugin>
286+
</plugins>
287+
</build>
288+
</profile>
262289
</profiles>
263290
</project>

shared/src/test/resources/createTestClassLoaderUtilsOtherJar.sh

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright 2018 ABSA Group Limited
3+
# Copyright 2018 ABSA Group Limited
44
#
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
# http://www.apache.org/licenses/LICENSE-2.0
89
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing, software
12-
# distributed under the License is distributed on an "AS IS" BASIS,
13-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
#
15-
# See the License for the specific language governing permissions and
16-
# limitations under the License.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1715
#
1816

1917
#

0 commit comments

Comments
 (0)