RFR: 7903136: Don't require jdk18_home to be set in jextract gradle build

Maurizio Cimadamore mcimadamore at openjdk.java.net
Tue Mar 29 11:56:06 UTC 2022


On Mon, 28 Mar 2022 16:02:21 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> Drop the requirement to set `jdk18_home` in the gradle build, and rely instead on `JAVA_HOME` being set to JDK 18.
> 
> I've also updated the build instructions. The `-Pjtreg_home` flag seems to have been dropped by accident from the test command. I've re-added it. Also renamed `libclang_dir` -> `llvm_dir` which was missed in an earlier change.

After thinking some more, and having tried different things, it seems to me that, while alternatives are possible, nothing seems quite a slam dunk. The best and most consistent way to provide better user experience would be to add our own download logic of binaries in https://jdk.java.net - failing that, all solutions seem to suffer from some pros and cons - which don't make them a big enough improvement over the status quo, IMHO.

-------------

PR: https://git.openjdk.java.net/jextract/pull/9


More information about the jextract-dev mailing list