You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Arnaud Vandyck <av...@gmail.com> on 2016/02/12 09:38:47 UTC
Karaf 4.1 switch to Java 8
Hi,
According to this discussion "Karaf 4.0 switch to Java 8"[0], and the
fact that Karaf master is 4.1.0-SNAPSHOT[1], is there a plan to switch
to Java 8?
Is there an improvment request about it?
Have a nice day,
[0] http://karaf.922171.n3.nabble.com/Karaf-4-0-switch-to-Java8-tt40380
25.html#none
[1] https://github.com/apache/karaf/blob/master/pom.xml
--
Arnaud Vandyck <av...@gmail.com>
Re: Karaf 4.1 switch to Java 8
Posted by Arnaud Vandyck <av...@gmail.com>.
On Fri, 2016-02-12 at 15:32 +0100, Jean-Baptiste Onofré wrote:
> It's already done.
Cool, thanks ;-)
And congratulations for the new website ;-)
--
Arnaud Vandyck <av...@gmail.com>
Re: Karaf 4.1 switch to Java 8
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
It's already done.
Regards
JB
On 02/12/2016 03:24 PM, Arnaud Vandyck wrote:
> On Fri, 2016-02-12 at 14:46 +0100, Jean-Baptiste Onofré wrote:
>> Hi Arnaud,
>>
>> yes, it should be updated (I'm doing it now), but you can see:
>>
>> http://karaf.apache.org/download.html
>>
>> in the table about Java Version Support, that the min is 8.
>
> I was trying to work on KARAF-4273, refactoring the GrepAction in Java
> 8 but IntelliJ complains about the version of java ;-)
>
> I attach a little patch, I hope it helps ;-)
>
> Cheers,
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf 4.1 switch to Java 8
Posted by Arnaud Vandyck <av...@gmail.com>.
On Fri, 2016-02-12 at 14:46 +0100, Jean-Baptiste Onofré wrote:
> Hi Arnaud,
>
> yes, it should be updated (I'm doing it now), but you can see:
>
> http://karaf.apache.org/download.html
>
> in the table about Java Version Support, that the min is 8.
I was trying to work on KARAF-4273, refactoring the GrepAction in Java
8 but IntelliJ complains about the version of java ;-)
I attach a little patch, I hope it helps ;-)
Cheers,
--
Arnaud Vandyck <av...@gmail.com>
Re: Karaf 4.1 switch to Java 8
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Arnaud,
yes, it should be updated (I'm doing it now), but you can see:
http://karaf.apache.org/download.html
in the table about Java Version Support, that the min is 8.
Regards
JB
On 02/12/2016 02:39 PM, Arnaud Vandyck wrote:
> On Fri, 2016-02-12 at 09:43 +0100, Jean-Baptiste Onofré wrote:
>> Hi Arnaud,
>>
>> it's already done: master (4.1.x) is Java 8 only (and it's the way
>> it's configured on Jenkins).
>
> According to the pom
>
>>> [1] https://github.com/apache/karaf/blob/master/pom.xml
>
> I see this configuration for the maven-compiler-plugin
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.7</source>
> <target>1.7</target>
> <maxmem>256M</maxmem>
> <fork>${compiler.fork}</fork>
> </configuration>
> </plugin>
>
> Also the maven-enforcer-plugin, requireJavaVersion is [1.7,1.9).
>
> Shouldn't these configurations be updated to 1.8 instead of 1.7?
>
> The switch to java 8 is only to build and run karaf, the source code
> and target will not be java 8?
>
> Cheers,
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf 4.1 switch to Java 8
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi Arnaud,
Thanks for the hint, yes this should be upgraded.
Regards, Achim
sent from mobile device
Am 12.02.2016 2:39 nachm. schrieb "Arnaud Vandyck" <av...@gmail.com>:
> On Fri, 2016-02-12 at 09:43 +0100, Jean-Baptiste Onofré wrote:
> > Hi Arnaud,
> >
> > it's already done: master (4.1.x) is Java 8 only (and it's the way
> > it's configured on Jenkins).
>
> According to the pom
>
> > > [1] https://github.com/apache/karaf/blob/master/pom.xml
>
> I see this configuration for the maven-compiler-plugin
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.7</source>
> <target>1.7</target>
> <maxmem>256M</maxmem>
> <fork>${compiler.fork}</fork>
> </configuration>
> </plugin>
>
> Also the maven-enforcer-plugin, requireJavaVersion is [1.7,1.9).
>
> Shouldn't these configurations be updated to 1.8 instead of 1.7?
>
> The switch to java 8 is only to build and run karaf, the source code
> and target will not be java 8?
>
> Cheers,
>
> --
> Arnaud Vandyck <av...@gmail.com>
>
>
>
Re: Karaf 4.1 switch to Java 8
Posted by Arnaud Vandyck <av...@gmail.com>.
On Fri, 2016-02-12 at 09:43 +0100, Jean-Baptiste Onofré wrote:
> Hi Arnaud,
>
> it's already done: master (4.1.x) is Java 8 only (and it's the way
> it's configured on Jenkins).
According to the pom
> > [1] https://github.com/apache/karaf/blob/master/pom.xml
I see this configuration for the maven-compiler-plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
<maxmem>256M</maxmem>
<fork>${compiler.fork}</fork>
</configuration>
</plugin>
Also the maven-enforcer-plugin, requireJavaVersion is [1.7,1.9).
Shouldn't these configurations be updated to 1.8 instead of 1.7?
The switch to java 8 is only to build and run karaf, the source code
and target will not be java 8?
Cheers,
--
Arnaud Vandyck <av...@gmail.com>
Re: Karaf 4.1 switch to Java 8
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Arnaud,
it's already done: master (4.1.x) is Java 8 only (and it's the way it's
configured on Jenkins).
On the other hand, Karaf 4.0.x fully supports Java 8 (but also Java 7).
Regards
JB
On 02/12/2016 09:38 AM, Arnaud Vandyck wrote:
> Hi,
>
> According to this discussion "Karaf 4.0 switch to Java 8"[0], and the
> fact that Karaf master is 4.1.0-SNAPSHOT[1], is there a plan to switch
> to Java 8?
>
> Is there an improvment request about it?
>
> Have a nice day,
>
> [0] http://karaf.922171.n3.nabble.com/Karaf-4-0-switch-to-Java8-tt40380
> 25.html#none
>
> [1] https://github.com/apache/karaf/blob/master/pom.xml
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf 4.1 switch to Java 8
Posted by Achim Nierbeck <bc...@googlemail.com>.
Jetty 9.3 and PAX Web will demand Java8 so yes karaf 4.1 will only run with
Java 8 while all other versions also support "older" versions.
Regards, Achim
sent from mobile device
Am 12.02.2016 11:15 vorm. schrieb "David Daniel" <
david.daniel.1979@gmail.com>:
> Many of the new osgi bundles require java 8 so users will have to switch if
> new versions are pulled in by default. Examples would be jetty 9.3 if pax
> exam moves to that and the newest jline work. I already had to move for the
> 2.4 akka libs
> On Feb 12, 2016 3:38 AM, "Arnaud Vandyck" <av...@gmail.com> wrote:
>
> > Hi,
> >
> > According to this discussion "Karaf 4.0 switch to Java 8"[0], and the
> > fact that Karaf master is 4.1.0-SNAPSHOT[1], is there a plan to switch
> > to Java 8?
> >
> > Is there an improvment request about it?
> >
> > Have a nice day,
> >
> > [0] http://karaf.922171.n3.nabble.com/Karaf-4-0-switch-to-Java8-tt40380
> > 25.html#none
> >
> > [1] https://github.com/apache/karaf/blob/master/pom.xml
> >
> > --
> > Arnaud Vandyck <av...@gmail.com>
> >
> >
>
Re: Karaf 4.1 switch to Java 8
Posted by David Daniel <da...@gmail.com>.
Many of the new osgi bundles require java 8 so users will have to switch if
new versions are pulled in by default. Examples would be jetty 9.3 if pax
exam moves to that and the newest jline work. I already had to move for the
2.4 akka libs
On Feb 12, 2016 3:38 AM, "Arnaud Vandyck" <av...@gmail.com> wrote:
> Hi,
>
> According to this discussion "Karaf 4.0 switch to Java 8"[0], and the
> fact that Karaf master is 4.1.0-SNAPSHOT[1], is there a plan to switch
> to Java 8?
>
> Is there an improvment request about it?
>
> Have a nice day,
>
> [0] http://karaf.922171.n3.nabble.com/Karaf-4-0-switch-to-Java8-tt40380
> 25.html#none
>
> [1] https://github.com/apache/karaf/blob/master/pom.xml
>
> --
> Arnaud Vandyck <av...@gmail.com>
>
>