You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by gn...@apache.org on 2021/05/19 13:04:53 UTC

[mina-sshd] branch master updated: Make sure the project is built using with JDK 8 during releases

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

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git


The following commit(s) were added to refs/heads/master by this push:
     new d156443  Make sure the project is built using with JDK 8 during releases
d156443 is described below

commit d15644325e254ec1bedb9cd4e5aa4a6a3adb63d9
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Wed May 19 15:03:02 2021 +0200

    Make sure the project is built using with JDK 8 during releases
---
 pom.xml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index b879dc7..a92f5ab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,6 +97,7 @@
         <ant.build.javac.source>${javac.source}</ant.build.javac.source>
         <build-helper-maven-plugin.version>3.2.0</build-helper-maven-plugin.version>
 
+        <required.java.version>[${javac.target},)</required.java.version>
         <javac.target>${javac.source}</javac.target>
         <project.build.java.target>${javac.target}</project.build.java.target>
         <maven.compiler.target>${javac.target}</maven.compiler.target>
@@ -130,6 +131,13 @@
 
     <profiles>
         <profile>
+            <id>release</id>
+            <properties>
+                <required.java.version>[1.8,1.9)</required.java.version>
+            </properties>
+        </profile>
+
+        <profile>
             <id>ci</id>
             <properties>
                 <sshd.tests.timeout.factor>4.0</sshd.tests.timeout.factor>
@@ -1256,7 +1264,7 @@
                             <version>[${min.required.maven.version},)</version>
                         </requireMavenVersion>
                         <requireJavaVersion>
-                            <version>[${javac.target},)</version>
+                            <version>${required.java.version}</version>
                         </requireJavaVersion>
                         <requireReleaseDeps>
                             <onlyWhenRelease>true</onlyWhenRelease>