Re: Java 10 replacing Java 9 in Jenkins for trunk

2018-05-05 Thread Ismael Juma
Hi Ted,

We are in the process of updating the system tests infrastructure so that
it works with Java 8. Once that happens, we will switch the build to use
Java 8.

Ismael

On Sat, 5 May 2018, 19:57 Ted Yu,  wrote:

> In PR build, I noticed the following (
> https://builds.apache.org/job/kafka-pr-jdk10-scala2.12/622/console) :
>
> *02:32:11*
> :clients:compileJava/home/jenkins/jenkins-slave/workspace/kafka-pr-jdk10-scala2.12/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java:1262:
> error: lambda expressions are not supported in -source 7*02:32:12*
> client.poll(pollTimeout, nowMs, () -> {*02:32:12*
>   ^*02:32:12*   (use -source 8 or higher to
> enable lambda expressions)*02:32:12* 1 error
>
>
> Could the above be due to the following in build.gradle :
>
> if (JavaVersion.current().isJava9Compatible())
>   options.compilerArgs << "--release" << "7"
>
> If so, we need to adjust it.
>
> Cheers
>
> On Mon, Apr 9, 2018 at 9:46 AM, Ismael Juma  wrote:
>
> > Hi all,
> >
> > Java 10 was recently released and support for Java 9 has ended since it's
> > not a LTS release. I've added a kafka-trunk Jenkins job for Java 10 and
> > disabled the Java 9 job. I also added a PR Jenkins job for Java 10 and
> will
> > soon disable the Java 9 PR job.
> >
> > The general idea is to have a separate Jenkins job for the latest non LTS
> > release (Java 10) and all supported LTS releases (Java 8 and Java 7
> > currently, soon to become Java 8 only).
> >
> > Let me know if you have any questions or concerns.
> >
> > Ismael
> >
>


Re: Java 10 replacing Java 9 in Jenkins for trunk

2018-05-05 Thread Ted Yu
In PR build, I noticed the following (
https://builds.apache.org/job/kafka-pr-jdk10-scala2.12/622/console) :

*02:32:11* 
:clients:compileJava/home/jenkins/jenkins-slave/workspace/kafka-pr-jdk10-scala2.12/clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java:1262:
error: lambda expressions are not supported in -source 7*02:32:12*
client.poll(pollTimeout, nowMs, () -> {*02:32:12*
  ^*02:32:12*   (use -source 8 or higher to
enable lambda expressions)*02:32:12* 1 error


Could the above be due to the following in build.gradle :

if (JavaVersion.current().isJava9Compatible())
  options.compilerArgs << "--release" << "7"

If so, we need to adjust it.

Cheers

On Mon, Apr 9, 2018 at 9:46 AM, Ismael Juma  wrote:

> Hi all,
>
> Java 10 was recently released and support for Java 9 has ended since it's
> not a LTS release. I've added a kafka-trunk Jenkins job for Java 10 and
> disabled the Java 9 job. I also added a PR Jenkins job for Java 10 and will
> soon disable the Java 9 PR job.
>
> The general idea is to have a separate Jenkins job for the latest non LTS
> release (Java 10) and all supported LTS releases (Java 8 and Java 7
> currently, soon to become Java 8 only).
>
> Let me know if you have any questions or concerns.
>
> Ismael
>


Java 10 replacing Java 9 in Jenkins for trunk

2018-04-09 Thread Ismael Juma
Hi all,

Java 10 was recently released and support for Java 9 has ended since it's
not a LTS release. I've added a kafka-trunk Jenkins job for Java 10 and
disabled the Java 9 job. I also added a PR Jenkins job for Java 10 and will
soon disable the Java 9 PR job.

The general idea is to have a separate Jenkins job for the latest non LTS
release (Java 10) and all supported LTS releases (Java 8 and Java 7
currently, soon to become Java 8 only).

Let me know if you have any questions or concerns.

Ismael