You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2022/10/19 06:02:18 UTC

[camel] branch camel-3.18.x updated: Align archetypes to JDK 11 requirement, use instead of and

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

gnodet pushed a commit to branch camel-3.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.18.x by this push:
     new 5834906a47a Align archetypes to JDK 11 requirement, use <release> instead of <source> and <target>
5834906a47a is described below

commit 5834906a47af3b3a915753ae261ba27421ec137a
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Mon Oct 17 14:54:34 2022 +0200

    Align archetypes to JDK 11 requirement, use <release> instead of <source> and <target>
---
 .../resources/archetype-resources/__artifactId__-component/pom.xml     | 3 +--
 .../src/main/resources/archetype-resources/pom.xml                     | 3 +--
 init/pom.xml                                                           | 3 +--
 parent/pom.xml                                                         | 3 +--
 pom.xml                                                                | 3 +--
 5 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/pom.xml b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/pom.xml
index 4304815af3e..c90cb281045 100644
--- a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/pom.xml
+++ b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/__artifactId__-component/pom.xml
@@ -85,8 +85,7 @@
         <artifactId>maven-compiler-plugin</artifactId>
         <version>${maven-compiler-plugin-version}</version>
         <configuration>
-          <source>1.8</source>
-          <target>1.8</target>
+          <release>11</release>
         </configuration>
       </plugin>
       
diff --git a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/pom.xml b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/pom.xml
index 324bb6aca7a..dc2db268e2d 100644
--- a/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/camel-archetype-api-component/src/main/resources/archetype-resources/pom.xml
@@ -56,8 +56,7 @@
         <artifactId>maven-compiler-plugin</artifactId>
         <version>${maven-compiler-plugin-version}</version>
         <configuration>
-          <source>1.8</source>
-          <target>1.8</target>
+          <release>11</release>
         </configuration>
       </plugin>
     </plugins>
diff --git a/init/pom.xml b/init/pom.xml
index 01f5c6c2369..3cfa82d73ca 100644
--- a/init/pom.xml
+++ b/init/pom.xml
@@ -44,8 +44,7 @@
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>${maven-compiler-plugin-version}</version>
                 <configuration>
-                    <source>${jdk.version}</source>
-                    <target>${jdk.version}</target>
+                    <release>${jdk.version}</release>
                 </configuration>
             </plugin>
             <plugin>
diff --git a/parent/pom.xml b/parent/pom.xml
index 4600693c106..6d0c4e112e3 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -4844,8 +4844,7 @@
                         <artifactId>maven-compiler-plugin</artifactId>
                         <version>${maven-compiler-plugin-version}</version>
                         <configuration>
-                            <source>${jdk.version}</source>
-                            <target>${jdk.version}</target>
+                            <release>${jdk.version}</release>
                             <maxmem>512M</maxmem>
                             <fork>${compiler.fork}</fork>
                             <compilerId>javac-with-errorprone</compilerId>
diff --git a/pom.xml b/pom.xml
index ac8cebcd53c..4297a9b017d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -479,8 +479,7 @@
                             <artifactId>maven-compiler-plugin</artifactId>
                             <version>${maven-compiler-plugin-version}</version>
                             <configuration>
-                                <source>${jdk.version}</source>
-                                <target>${jdk.version}</target>
+                                <release>${jdk.version}</release>
                                 <maxmem>512M</maxmem>
                                 <fork>${compiler.fork}</fork>
                             </configuration>