What is the plan to fully move to JDK 11 (or JDK 17 which will be released
as LTS in two weeks)?

I remember Enrico starting a thread in February but I haven't seen an
update since then.

On Tue, Aug 31, 2021 at 5:15 AM Hang Chen <chenh...@apache.org> wrote:

> Hello Apache Pulsar Community,
>     In Apache Pulsar 2.8.1 RC1, Enrico found "check-binary-license" script
> fails on the staged tarball
> ```
>  ~/dev/pulsar/src/check-binary-license apache-pulsar-2.8.1-bin.tar.gz
> jetty-alpn-openjdk8-client-9.4.42.v20210604.jar unaccounted for in
> lib/presto/LICENSE
> jetty-alpn-java-client-9.4.42.v20210604.jar mentioned in
> lib/presto/LICENSE, but not bundled
> ```
>
> After work with Enrico, he found jetty dependency
> http2-http-client-transport adds transitive dependencies depending on the
> JDK version
>
> https://repo1.maven.org/maven2/org/eclipse/jetty/http2/http2-http-client-transport/9.4.42.v20210604/http2-http-client-transport-9.4.42.v20210604.pom
>
> with jdk8:
>
> mvn dependency:tree
> [INFO] |  +- io.airlift:http-client:jar:0.195:compile
> [INFO] |  |  +- org.eclipse.jetty:jetty-client:jar:9.4.42.v20210604:compile
> [INFO] |  |  +-
> org.eclipse.jetty.http2:http2-client:jar:9.4.42.v20210604:compile
> [INFO] |  |  |  \-
> org.eclipse.jetty:jetty-alpn-client:jar:9.4.42.v20210604:compile
> [INFO] |  |  +-
>
> org.eclipse.jetty.http2:http2-http-client-transport:jar:9.4.42.v20210604:compile
> [INFO] |  |  |  \-
> org.eclipse.jetty:jetty-alpn-openjdk8-client:jar:9.4.42.v20210604:compile
> [INFO] |  |  \- net.jodah:failsafe:jar:2.0.1:compile
>
> with jdk11:
>
> [INFO] |  +- io.airlift:http-client:jar:0.195:compile
> [INFO] |  |  +- org.eclipse.jetty:jetty-client:jar:9.4.42.v20210604:compile
> [INFO] |  |  +-
> org.eclipse.jetty.http2:http2-client:jar:9.4.42.v20210604:compile
> [INFO] |  |  |  \-
> org.eclipse.jetty:jetty-alpn-client:jar:9.4.42.v20210604:compile
> [INFO] |  |  +-
>
> org.eclipse.jetty.http2:http2-http-client-transport:jar:9.4.42.v20210604:compile
> [INFO] |  |  |  \-
> org.eclipse.jetty:jetty-alpn-java-client:jar:9.4.42.v20210604:compile
>
> In order to solve this issue, I will use JDK11 to release Apache Pulsar
> 2.8.1 instead of JDK8. JDK11 is compatible with JDK8, and the release
> target is specified to JDK8.
> If you have any concerns, please let me know, thanks!
>
> Thanks for Enrico's great work.
>
> Thanks,
> Hang
>


-- 
Jonathan Ellis
co-founder, http://www.datastax.com
@spyced

Reply via email to