You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2022/06/08 17:15:18 UTC

[uima-uimaj] 01/01: [UIMA-6463] Use toolchains to ensure compatibility with Java 1.8

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

rec pushed a commit to branch refactoring/UIMA-6463-Use-toolchains-to-ensure-compatibility-with-Java-1_8
in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git

commit 470aeee80730bf9d064024f82b8aeb7c43c98c7b
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Wed Jun 8 19:15:11 2022 +0200

    [UIMA-6463] Use toolchains to ensure compatibility with Java 1.8
    
    - Add toolchain configuration to parent POM
---
 uimaj-parent/pom.xml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/uimaj-parent/pom.xml b/uimaj-parent/pom.xml
index a6fd7c3c7..eebd19a20 100644
--- a/uimaj-parent/pom.xml
+++ b/uimaj-parent/pom.xml
@@ -248,6 +248,25 @@
     </pluginManagement>
 
     <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-toolchains-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>toolchain</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <toolchains>
+            <jdk>
+              <version>${maven.compiler.target}</version>
+            </jdk>
+          </toolchains>
+        </configuration>
+      </plugin>
+    
       <plugin>
         <groupId>com.github.spotbugs</groupId>
         <artifactId>spotbugs-maven-plugin</artifactId>