Mailing List Archive

java 16 gradle not working
Hi

I just installed OpenJDK 16 and tried to build Lucene, but received the
following error

* What went wrong:
Could not compile settings file
'/Users/michaelwechner/src/apache/lucene/settings.gradle'.
> startup failed:
  General error during semantic analysis: Unsupported class file major
version 60

  java.lang.IllegalArgumentException: Unsupported class file major
version 60

and searched for it and IIUC this is does not work

https://github.com/gradle/gradle/issues/13481

I think it would make sense to add a note to the README

https://github.com/apache/lucene

WDYT?

Thanks

Michael



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: java 16 gradle not working [ In reply to ]
You do need to use Java 11-14 with the build itself for now. You can use a
newer Java version to run tests, etc. - this is explained here:
https://github.com/apache/lucene/blob/main/help/jvms.txt

D.

On Sun, May 23, 2021 at 6:02 PM Michael Wechner <michael.wechner@wyona.com>
wrote:

> Hi
>
> I just installed OpenJDK 16 and tried to build Lucene, but received the
> following error
>
> * What went wrong:
> Could not compile settings file
> '/Users/michaelwechner/src/apache/lucene/settings.gradle'.
> > startup failed:
> General error during semantic analysis: Unsupported class file major
> version 60
>
> java.lang.IllegalArgumentException: Unsupported class file major
> version 60
>
> and searched for it and IIUC this is does not work
>
> https://github.com/gradle/gradle/issues/13481
>
> I think it would make sense to add a note to the README
>
> https://github.com/apache/lucene
>
> WDYT?
>
> Thanks
>
> Michael
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
Re: java 16 gradle not working [ In reply to ]
thank you very much for this link!

Thanks

Michael

Am 23.05.21 um 22:08 schrieb Dawid Weiss:
>
> You do need to use Java 11-14 with the build itself for now. You can
> use a newer Java version to run tests, etc. - this is explained here:
> https://github.com/apache/lucene/blob/main/help/jvms.txt
> <https://github.com/apache/lucene/blob/main/help/jvms.txt>
>
> D.
>
> On Sun, May 23, 2021 at 6:02 PM Michael Wechner
> <michael.wechner@wyona.com <mailto:michael.wechner@wyona.com>> wrote:
>
> Hi
>
> I just installed OpenJDK 16 and tried to build Lucene, but
> received the
> following error
>
> * What went wrong:
> Could not compile settings file
> '/Users/michaelwechner/src/apache/lucene/settings.gradle'.
>  > startup failed:
>    General error during semantic analysis: Unsupported class file
> major
> version 60
>
>    java.lang.IllegalArgumentException: Unsupported class file major
> version 60
>
> and searched for it and IIUC this is does not work
>
> https://github.com/gradle/gradle/issues/13481
> <https://github.com/gradle/gradle/issues/13481>
>
> I think it would make sense to add a note to the README
>
> https://github.com/apache/lucene <https://github.com/apache/lucene>
>
> WDYT?
>
> Thanks
>
> Michael
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> <mailto:dev-unsubscribe@lucene.apache.org>
> For additional commands, e-mail: dev-help@lucene.apache.org
> <mailto:dev-help@lucene.apache.org>
>
Re: java 16 gradle not working [ In reply to ]
You're welcome. I added one sentence to the readme that should help people
find the relevant resource. Switching to gradle 7 is not that trivial,
sadly.

Dawid

On Sun, May 23, 2021 at 11:31 PM Michael Wechner <michael.wechner@wyona.com>
wrote:

> thank you very much for this link!
>
> Thanks
>
> Michael
>
> Am 23.05.21 um 22:08 schrieb Dawid Weiss:
>
>
> You do need to use Java 11-14 with the build itself for now. You can use a
> newer Java version to run tests, etc. - this is explained here:
> https://github.com/apache/lucene/blob/main/help/jvms.txt
>
> D.
>
> On Sun, May 23, 2021 at 6:02 PM Michael Wechner <michael.wechner@wyona.com>
> wrote:
>
>> Hi
>>
>> I just installed OpenJDK 16 and tried to build Lucene, but received the
>> following error
>>
>> * What went wrong:
>> Could not compile settings file
>> '/Users/michaelwechner/src/apache/lucene/settings.gradle'.
>> > startup failed:
>> General error during semantic analysis: Unsupported class file major
>> version 60
>>
>> java.lang.IllegalArgumentException: Unsupported class file major
>> version 60
>>
>> and searched for it and IIUC this is does not work
>>
>> https://github.com/gradle/gradle/issues/13481
>>
>> I think it would make sense to add a note to the README
>>
>> https://github.com/apache/lucene
>>
>> WDYT?
>>
>> Thanks
>>
>> Michael
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>