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/22 13:07:30 UTC

[uima-uimaj-io-jsoncas] 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-io-jsoncas.git

commit e46b680ad36d8956089a8954fde2c3f1496012de
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Wed Jun 22 15:07:25 2022 +0200

    [UIMA-6463] Use toolchains to ensure compatibility with Java 1.8
    
    - Add toolchain configuration
---
 pom.xml | 37 ++++++++++++++++++++++---------------
 1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/pom.xml b/pom.xml
index c216811..819a88a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,20 +52,6 @@
     <maven.compiler.source>1.8</maven.compiler.source>
   </properties>
 
-  <repositories>
-    <repository>
-      <id>apache.snapshots</id>
-      <name>Apache Snapshot Repository</name>
-      <url>https://repository.apache.org/snapshots</url>
-      <releases>
-        <enabled>false</enabled>
-      </releases>
-      <snapshots>
-        <enabled>true</enabled>
-      </snapshots>
-    </repository>
-  </repositories>
-  
   <dependencies>
     <dependency>
       <groupId>org.apache.uima</groupId>
@@ -113,7 +99,7 @@
       <version>${junit-version}</version>
       <scope>test</scope>
     </dependency>
-    
+
     <dependency>
       <groupId>org.apache.uima</groupId>
       <artifactId>uimaj-test-util</artifactId>
@@ -178,6 +164,27 @@
   </dependencies>
 
   <build>
+    <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>
+    </plugins>
+
     <pluginManagement>
       <plugins>
         <plugin>