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

piergiorgio pushed a commit to branch CONNECTORS-1754
in repository https://gitbox.apache.org/repos/asf/manifoldcf.git


The following commit(s) were added to refs/heads/CONNECTORS-1754 by this push:
     new 475dbc1e3 added the license check as GitHub workflow (CONNECTORS-1754)
475dbc1e3 is described below

commit 475dbc1e3cec61ee47bde962d43f3b8ac387179e
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Tue Jan 30 15:21:21 2024 +0100

    added the license check as GitHub workflow (CONNECTORS-1754)
---
 .github/license-check.yml             | 42 +++++++++++++++++++++++++++++++++++
 CHANGES.txt                           |  3 +++
 framework/combined-service/pom.xml    |  2 +-
 pom.xml                               | 39 ++++++++++++++++++++++++++------
 test-materials/alfresco-4-war/pom.xml |  2 +-
 5 files changed, 79 insertions(+), 9 deletions(-)

diff --git a/.github/license-check.yml b/.github/license-check.yml
new file mode 100644
index 000000000..0ae041535
--- /dev/null
+++ b/.github/license-check.yml
@@ -0,0 +1,42 @@
+# 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.
+
+name: License Check
+run-name: ${{ github.actor }} is executing the RAT license check🚀
+
+on:
+  workflow_dispatch:
+
+jobs:
+  licenseCheck:
+    runs-on: ubuntu-22.04
+    steps:
+      - uses: actions/[email protected]
+      - name: Set up OpenJDK 11 Temurin
+        uses: actions/[email protected]
+        with:
+          java-version: '11'
+          distribution: 'temurin'
+          architecture: x64
+          cache: maven
+      - name: RAT licence checks
+        run: mvn -pl . org.apache.rat:apache-rat:check
+      - name: RAT Report
+        if: always()
+        run: |
+          echo -e "Printing RAT report\n"
+          cat target/rat.txt || true
diff --git a/CHANGES.txt b/CHANGES.txt
index aaff74256..9af40dab1 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -3,6 +3,9 @@ $Id$
 
 ======================= 2.27-dev =====================
 
+CONNECTORS-1754: Converting release scripts to GitHub workflows
+(Piergiorgio Lucidi)
+
 CONNECTORS-1753: ant make-core-deps fails
 (Guylaine Bassett)
 
diff --git a/framework/combined-service/pom.xml 
b/framework/combined-service/pom.xml
index fd9228b0c..f26383b8d 100644
--- a/framework/combined-service/pom.xml
+++ b/framework/combined-service/pom.xml
@@ -125,7 +125,7 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-war-plugin</artifactId>
-        <version>2.3</version>
+        <version>${maven-war-plugin.version}</version>
         <configuration>
           <overlays>
             <overlay>
diff --git a/pom.xml b/pom.xml
index ffdcc3d96..ff1d9b6a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,6 +96,12 @@
     <jsoup.version>1.7.2</jsoup.version>
     <cxf.version>3.5.0</cxf.version>
     <jaxws-ri.version>2.3.2</jaxws-ri.version>
+    <maven-source-plugin.version>3.3.0</maven-source-plugin.version>
+    <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
+    <maven-rat-plugin.version>0.16.1</maven-rat-plugin.version>
+    <maven-war-plugin.version>3.4.0</maven-war-plugin.version>
+    
<maven-apache-source-release-assembly-descriptor.version>1.5</maven-apache-source-release-assembly-descriptor.version>
+    
   </properties>
 
   <modules>
@@ -111,13 +117,18 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-source-plugin</artifactId>
-          <version>2.4</version>
+          <version>${maven-source-plugin.version}</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-jar-plugin</artifactId>
-          <version>2.3.1</version>
+          <version>${maven-jar-plugin.version}</version>
         </plugin>
+        <plugin>
+                   <groupId>org.apache.rat</groupId>
+                   <artifactId>apache-rat-plugin</artifactId>
+                   <version>${maven-rat-plugin.version}</version>
+                 </plugin>
       </plugins>
     </pluginManagement>
 
@@ -172,7 +183,7 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
-        <version>3.11.0</version>
+        <version>3.12.1</version>
         <configuration>
           <source>11</source>
           <target>11</target>
@@ -183,7 +194,7 @@
 
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
-        <version>2.5</version>
+        <version>3.3.1</version>
         <configuration>
           <encoding>UTF-8</encoding>
         </configuration>
@@ -191,9 +202,23 @@
 
       <plugin>
         <artifactId>maven-clean-plugin</artifactId>
-        <version>2.4.1</version>
+        <version>3.3.2</version>
       </plugin>
-
+      
+      <plugin>
+           <groupId>org.apache.rat</groupId>
+           <artifactId>apache-rat-plugin</artifactId>
+           <configuration>
+              <excludes>
+                   <exclude>CHANGES.txt</exclude>
+                   <exclude>DEPENDENCIES.txt</exclude>
+                   
<exclude>site/src/documentation/skins/lucene/note.txt</exclude>
+                   
<exclude>site/src/documentation/skins/common/xslt/html/split.xsl</exclude>
+                   <exclude>dist-license/DEPENDENCIES.txt</exclude>
+              </excludes>
+         </configuration>
+      </plugin>
+     
     </plugins>
   </build>
 
@@ -211,7 +236,7 @@
                         <dependency>
                             <groupId>org.apache.apache.resources</groupId>
                             
<artifactId>apache-source-release-assembly-descriptor</artifactId>
-                            <version>1.0.4</version>
+                            
<version>${maven-apache-source-release-assembly-descriptor.version}</version>
                         </dependency>
                     </dependencies>
                     <executions>
diff --git a/test-materials/alfresco-4-war/pom.xml 
b/test-materials/alfresco-4-war/pom.xml
index 3757fb9bd..1a5abbfe8 100644
--- a/test-materials/alfresco-4-war/pom.xml
+++ b/test-materials/alfresco-4-war/pom.xml
@@ -120,7 +120,7 @@
         <plugins>
             <plugin>
                 <artifactId>maven-war-plugin</artifactId>
-                <version>2.3</version>
+                <version>${maven-war-plugin.version}</version>
             </plugin>
         </plugins>
     </pluginManagement>

Reply via email to