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

jzemerick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp.git


The following commit(s) were added to refs/heads/master by this push:
     new cc795fd  OPENNLP-1354: Changing to Java 11. (#407)
cc795fd is described below

commit cc795fda6f3cbab85d930ab2a99a57595528d067
Author: Jeff Zemerick <[email protected]>
AuthorDate: Mon Mar 28 09:56:01 2022 -0400

    OPENNLP-1354: Changing to Java 11. (#407)
    
    * OPENNLP-1354: Changing to Java 11.
---
 .github/workflows/maven.yml | 2 +-
 pom.xml                     | 8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 00d5847..a7c734e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -24,7 +24,7 @@ jobs:
     strategy:
       matrix:
         os: [ubuntu-latest]
-        java: [ 8 ]
+        java: [ 11 ]
         experimental: [false]
 #        include:
 #          - java: 18-ea
diff --git a/pom.xml b/pom.xml
index d4d4da9..3483615 100644
--- a/pom.xml
+++ b/pom.xml
@@ -136,8 +136,7 @@
 
        <properties>
                <!-- Build Properties -->
-               <java.version>1.8</java.version>
-               <maven.compiler.target>1.8</maven.compiler.target>
+               <java.version>11</java.version>
                <maven.version>3.3.9</maven.version>
                <commons.io.version>2.6</commons.io.version>
                <enforcer.plugin.version>3.0.0-M2</enforcer.plugin.version>
@@ -295,10 +294,9 @@
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
-                               <version>3.8.1</version>
+                               <version>3.10.1</version>
                                <configuration>
-                                       <source>${java.version}</source>
-                                       <target>${java.version}</target>
+                                       <release>${java.version}</release>
                                        
<compilerArgument>-Xlint</compilerArgument>
                                </configuration>
                        </plugin>

Reply via email to