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

albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new c34bfd6c1a Fix pom configuration
c34bfd6c1a is described below

commit c34bfd6c1a52bd9b5e36440e492ff7b0f600fdd3
Author: Albumen Kevin <[email protected]>
AuthorDate: Fri Jul 22 12:41:24 2022 +0800

    Fix pom configuration
---
 pom.xml | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1cdbb0f02d..a9a40e97d0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -109,7 +109,6 @@
         <!-- for maven compiler plugin -->
         <java_source_version>1.8</java_source_version>
         <java_target_version>1.8</java_target_version>
-        <java_release_version>8</java_release_version>
         <file_encoding>UTF-8</file_encoding>
         <!-- Maven plugins -->
         <maven_jar_version>3.2.0</maven_jar_version>
@@ -525,6 +524,22 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>jdk9-compile</id>
+            <activation>
+                <jdk>[1.9,)</jdk>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-compiler-plugin</artifactId>
+                        <configuration>
+                            <release>8</release>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 
     <build>
@@ -618,7 +633,6 @@
                     <fork>true</fork>
                     <source>${java_source_version}</source>
                     <target>${java_target_version}</target>
-                    <release>${java_release_version}</release>
                     <encoding>${file_encoding}</encoding>
                 </configuration>
             </plugin>

Reply via email to