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

pottlinger pushed a commit to branch feature/RAT-478
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git


The following commit(s) were added to refs/heads/feature/RAT-478 by this push:
     new f44ce6f7 RAT-478: Raise language level to JDK17, remove 
animal-sniffer, build with 18,21,25 on GHA
f44ce6f7 is described below

commit f44ce6f76a7a82e88f74c4fe481cfa1f3ae926ac
Author: P. Ottlinger <[email protected]>
AuthorDate: Sun Dec 21 00:31:19 2025 +0100

    RAT-478: Raise language level to JDK17, remove animal-sniffer, build with 
18,21,25 on GHA
---
 .github/workflows/maven.yml |  9 ++-------
 pom.xml                     | 16 +++++++++++-----
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index df8e19b9..7ca67ec6 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -31,14 +31,9 @@ jobs:
 
     strategy:
       matrix:
-# RAT-468: macos-latest starts with JDK11 and has no JDK8 available
-        os: [ubuntu-latest, windows-latest]
-# RAT-296: disable JDK10 due to
-# Caused by: sun.security.validator.ValidatorException: PKIX path building 
failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to 
find valid certification path to requested target
-#
+        os: [macos-latest, ubuntu-latest, windows-latest]
 # RAT-497: JDK17-javadoc error fails the site build, albeit javadoc:javadoc 
works fine, https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8369613
-# Java 25 is not working until we drop JDK8!
-        java: [8, 11, 21]
+        java: [18, 21, 25]
       fail-fast: false
 
     runs-on: ${{ matrix.os }}
diff --git a/pom.xml b/pom.xml
index 14e0ebf6..3f27d47d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,7 +49,7 @@ agnostic home for software distribution comprehension and 
audit tools.
     <project.build.outputTimestamp>a</project.build.outputTimestamp>
     <ant.version>1.10.15</ant.version>
     <mockito.version>4.11.0</mockito.version>
-    <javaVersion>1.8</javaVersion>
+    <javaVersion>17</javaVersion>
     <tika.version>2.9.4</tika.version>
     <maven.compiler.source>${javaVersion}</maven.compiler.source>
     <maven.compiler.target>${javaVersion}</maven.compiler.target>
@@ -466,8 +466,8 @@ agnostic home for software distribution comprehension and 
audit tools.
                 Note that this cannot use our ${javaVersion} property, so it 
must
                 be changed manually when we decide to move to a higher version 
of
                 Java
-              -->
-              <id>check-java-1.8-compat</id>
+                RAT-478: Opened 
https://github.com/mojohaus/animal-sniffer/issues/316 to ask how to proceed here
+              <id>check-java-17-compat</id>
               <phase>process-classes</phase>
               <goals>
                 <goal>check</goal>
@@ -479,6 +479,7 @@ agnostic home for software distribution comprehension and 
audit tools.
                   <version>1.0</version>
                 </signature>
               </configuration>
+              -->
             </execution>
           </executions>
         </plugin>
@@ -490,7 +491,7 @@ agnostic home for software distribution comprehension and 
audit tools.
         <plugin>
           <groupId>com.github.spotbugs</groupId>
           <artifactId>spotbugs-maven-plugin</artifactId>
-          <version>4.8.6.6</version>
+          <version>4.9.8.2</version>
           <configuration>
             <!-- RAT-369: JDK21 finds 98 errors, while older releases find 
fewer -->
             <maxAllowedViolations>98</maxAllowedViolations>
@@ -531,6 +532,11 @@ agnostic home for software distribution comprehension and 
audit tools.
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
           <version>3.14.1</version>
+          <configuration>
+            <release>${javaVersion}</release>
+            <source>${javaVersion}</source>
+            <target>${javaVersion}</target>
+          </configuration>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -1000,7 +1006,7 @@ agnostic home for software distribution comprehension and 
audit tools.
           be changed manually when we decide to move to a higher version of
           Java
         -->
-        <maven.compiler.release>8</maven.compiler.release>
+        <maven.compiler.release>17</maven.compiler.release>
       </properties>
     </profile>
     <profile>

Reply via email to