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:01:44 UTC

[camel] branch main 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 main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 62f1dddb715 Align archetypes to JDK 11 requirement, use <release> instead of <source> and <target>
62f1dddb715 is described below

commit 62f1dddb715f23d1eb64b548cf6d7448f1811ce2
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 2da1dba785e..df9bd0c0c8b 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 b414054afac..84b1acd2baa 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -4871,8 +4871,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 1e3229eb015..ad6cefca9e6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -480,8 +480,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>