Re: What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Andrea Cosentino
I meant to say 3.x sorry Il ven 12 mag 2023, 19:43 Claus Ibsen ha scritto: > Hi > > If you build a new component then we only accept this for new releases, eg > 3.21 and 4.0. > Camel 4.0 requires Java 17 and Camel 3.x is Java 11. > > If you can only work with Java 11, then use camel-3.x branch (

Re: What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Claus Ibsen
Hi If you build a new component then we only accept this for new releases, eg 3.21 and 4.0. Camel 4.0 requires Java 17 and Camel 3.x is Java 11. If you can only work with Java 11, then use camel-3.x branch (eg Camel 3.21), and then we need to look later how to forward merge this to Camel v4 On

RE: What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Petr Kuzel
I remember that advice but relaxing related corporate constraints is not an easy job and it will not happen over a night. I've experimented B: org.apache.camel camel-azure-parent 3.20.5-SNAPSHOT and got stopped by: [INFO] No previous run data found, g

Re: What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Andrea Cosentino
I would focus on Java 17 and backport on old LTS branch 3.18.x and 3.20.x later. Il giorno ven 12 mag 2023 alle ore 16:55 Petr Kuzel ha scritto: > After fixing all syntax errors, compiler revealed: > > [ [1;31mERROR [m] > /C:/d/git/external/camel/components/camel-azure/camel-azure-files/src/

RE: What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Petr Kuzel
After fixing all syntax errors, compiler revealed: [ERROR] /C:/d/git/external/camel/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesEndpoint.java:[22,24] cannot access org.apache.camel.Category bad class file: C:\Users\petr\.

RE: What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Petr Kuzel
In pom.xml (derived from camel-azure-storage-blob pom.xml) having: 11 11 after: org.apache.camel camel-azure-parent 4.0.0-SNAPSHOT results in unexpected Java 8. If I remove the parent element, then inline groupId, version, and all de

Re: What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Nicolas Filotto
Have you tried to set the properties maven.compiler.source, maven.compiler.target, and maven.compiler.release like https://github.com/apache/camel/blob/main/pom.xml#L114-L116? See the compiler plugin documentation for more details https://maven.apache.org/plugins/maven-compiler-plugin/compile-m

RE: What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Petr Kuzel
Hi Nicolas, I have meant Java 11. I assume the Java backward compatibility allows me to target Java 11 regardless that some other Camel 4 components require Java 17. (I plan to backport to Camel 3.16+.) A good point after all. Hope it helps Cc. -- Mr. Petr Kužel, Software Engineer Euro

Re: What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Nicolas Filotto
Did you mean Java 17? As stated in the page that you are referring to, Camel 4 only supports Java 17+ From: Petr Kuzel Sent: Friday, May 12, 2023 10:10 To: dev@camel.apache.org Subject: What is the recommended way to depend on Java 11, pls? Hi Camel devs, I hav

What is the recommended way to depend on Java 11, pls?

2023-05-12 Thread Petr Kuzel
Hi Camel devs, I have cloned the Camel FTP and Azure components blending them together to develop a new Azure Files component. When I use org.apache.camel camel-azure-parent 4.0.0-SNAPSHOT Eclipse maven project leaves me with Java 8. But I'd like to