You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2024/06/13 10:37:17 UTC

(jackrabbit-oak) 01/01: OAK-10876: Oak 1.22 does not compile with JDK 11 anymore - remove animal sniffer plugin, require JDK 11+ for compilation, target JRE 8

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

reschke pushed a commit to branch OAK-10876b
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit c7f3cd3f6c5b503564f13d702406494b367d93f4
Author: Julian Reschke <re...@apache.org>
AuthorDate: Thu Jun 13 11:36:58 2024 +0100

    OAK-10876: Oak 1.22 does not compile with JDK 11 anymore - remove animal sniffer plugin, require JDK 11+ for compilation, target JRE 8
---
 oak-parent/pom.xml | 40 +++++++++-------------------------------
 1 file changed, 9 insertions(+), 31 deletions(-)

diff --git a/oak-parent/pom.xml b/oak-parent/pom.xml
index 6c198827d1..15cc6e63e2 100644
--- a/oak-parent/pom.xml
+++ b/oak-parent/pom.xml
@@ -71,12 +71,15 @@
     <jackson.version>2.16.2</jackson.version>
     <testcontainers.version>1.19.0</testcontainers.version>
     <groovy.version>2.5.23</groovy.version>
-    <java.version>1.8</java.version>
-    <java.version.signature>java18</java.version.signature>
-    
-   <!-- specifies on which fixture to run the integration testing tests. 
-      override in profiles or provide from command line to change behaviour. Provide 
-      more fixtures space separated. See org.apache.jackrabbit.oak.jcr.FixturesHelper#AVAILABLE_FIXTURES 
+    <!-- determines the bytecode version (i.e. the minimum JRE required to run the build artifact) -->
+    <javaTargetVersion>8</javaTargetVersion>
+    <maven.compiler.release>${javaTargetVersion}</maven.compiler.release>
+    <maven.compiler.target>${javaTargetVersion}</maven.compiler.target>
+    <minimalJavaBuildVersion>${javaTargetVersion}</minimalJavaBuildVersion>
+
+    <!-- specifies on which fixture to run the integration testing tests.
+      override in profiles or provide from command line to change behaviour. Provide
+      more fixtures space separated. See org.apache.jackrabbit.oak.jcr.FixturesHelper#AVAILABLE_FIXTURES
       for the possible values: SEGMENT_MK SEGMENT_TAR SEGMENT_AZURE DOCUMENT_NS DOCUMENT_RDB -->
     <fixtures>SEGMENT_TAR</fixtures>
 
@@ -111,18 +114,6 @@
             </compilerArgs>
           </configuration>
         </plugin>
-        <plugin>
-          <groupId>org.codehaus.mojo</groupId>
-          <artifactId>animal-sniffer-maven-plugin</artifactId>
-          <version>1.22</version>
-          <configuration>
-            <signature>
-              <groupId>org.codehaus.mojo.signature</groupId>
-              <artifactId>${java.version.signature}</artifactId>
-              <version>1.0</version>
-            </signature>
-          </configuration>
-        </plugin>
         <plugin>
           <artifactId>maven-javadoc-plugin</artifactId>
           <configuration>
@@ -462,19 +453,6 @@
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>animal-sniffer-maven-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>animal-sniffer</id>
-            <phase>compile</phase>
-            <goals>
-              <goal>check</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
     </plugins>
   </build>