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

twolf 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 6514e09b6 [SSHD-1285] Fix runtime linkage errors with Java 8 when 
building with Java versions > 8
6514e09b6 is described below

commit 6514e09b6facfaa760eb46f987c68c009928ba2a
Author: Jeremy Norris <jeremy.nor...@localbackhaul.com>
AuthorDate: Fri Jul 29 07:22:40 2022 -0500

    [SSHD-1285] Fix runtime linkage errors with Java 8 when building with Java 
versions > 8
---
 pom.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/pom.xml b/pom.xml
index 29dc1ded9..5ca3ea52f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -262,6 +262,24 @@
             </build>
         </profile>
 
+        <profile>
+            <id>javac-jdk9+</id>
+            <activation>
+                <jdk>[9,)</jdk>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-compiler-plugin</artifactId>
+                        <configuration>
+                            <release>${java.sdk.version}</release>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
         <profile>
             <id>only-eclipse</id>
             <activation>

Reply via email to