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

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-xmlschema.git

commit 5129d26b6d23e7ad37a1f1a343406dd5bfcca4a1
Author: Andreas Veithen <andreas.veit...@gmail.com>
AuthorDate: Sun Jul 16 16:16:25 2023 +0000

    Set the Java version consistently
    
    Use the same Java version for maven-compiler-plugin and
    maven-javadoc-plugin.
---
 pom.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 4e6a9a1f..42811bf3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,6 +79,7 @@
         <url>https://www.apache.org/</url>
     </organization>
     <properties>
+        <javaVersion>1.8</javaVersion>
         <xmlschema-eclipse-version>2.0</xmlschema-eclipse-version>
         
<project.build.outputTimestamp>2023-07-15T16:42:39Z</project.build.outputTimestamp>
     </properties>
@@ -168,8 +169,8 @@
                     <artifactId>maven-compiler-plugin</artifactId>
                     <configuration>
                         <encoding>UTF-8</encoding>
-                        <source>1.8</source>
-                        <target>1.8</target>
+                        <source>${javaVersion}</source>
+                        <target>${javaVersion}</target>
                     </configuration>
                 </plugin>
                 <plugin>
@@ -227,6 +228,7 @@
                     <artifactId>maven-javadoc-plugin</artifactId>
                     <version>3.5.0</version>
                     <configuration>
+                        <source>${javaVersion}</source>
                         <attach>true</attach>
                         <quiet>true</quiet>
                     </configuration>

Reply via email to