jitpack.io icon indicating copy to clipboard operation
jitpack.io copied to clipboard

openjdk12 is not supported (falls back to JDK 8)

Open msgilligan opened this issue 5 years ago • 7 comments

Please provide:

  • Link to build log from https://jitpack.io

https://jitpack.io/com/github/ConsensusJ/bitcoinj/consensusj-master-supernaut-v0.12-g29f8431-1362/build.log

NOTE: Part of the build is dependent on the JDK version and is skipped when run with an earlier version. So although the output looks successful an important Gradle subproject was skipped.

  • Does the project build on your machine with the same commands (e.g. ./gradlew install) ?

Yes. If I'm running under JDK 12 all modules build, but when I'm running under JDK 11 JavaDoc fails due to: https://bugs.openjdk.java.net/browse/JDK-8208269

  • What error are you seeing?

It seems that openjdk12 is not found so it reverts to the default JDK 8, see the JVM version listed in the output below:

------------------------------------------------------------
Gradle 5.4.1
------------------------------------------------------------

Build time:   2019-04-26 08:14:42 UTC
Revision:     261d171646b36a6a28d5a19a69676cd098a4c19d

Kotlin:       1.3.21
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          1.8.0_191 (Oracle Corporation 25.191-b12)
OS:           Linux 4.14.63-xxxx-std-ipv6-64 amd64

Thank you!

msgilligan avatar May 16 '19 07:05 msgilligan

For reference, here is a "successful" build with the workaround of specifying JDK 11 and disabling the JavaDoc portion of the build.

https://jitpack.io/com/github/ConsensusJ/bitcoinj/consensusj-master-supernaut-v0.12-gede4bde-1363/build.log

msgilligan avatar May 16 '19 08:05 msgilligan

Hi,

Indeed, there is no JDK 12 available yet on JitPack. For the time being perhaps it can be installed before the build using custom commands: https://jitpack.io/docs/BUILDING/#custom-commands

jitpack-io avatar May 20 '19 14:05 jitpack-io

Anything new on this?

utybo avatar Jun 26 '19 13:06 utybo

Hi all,

JDK12 is now available on JitPack and can be specified using jitpack.yml:

jdk:
  - openjdk12

jitpack-io avatar Jul 16 '19 12:07 jitpack-io

@jitpack-io Is JDK 14 supported yet?

widavies avatar Apr 18 '20 00:04 widavies

Is there a list of supported JDK versions published somewhere? I searched for that before finding this issue.

pcantrell avatar Aug 21 '20 04:08 pcantrell

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 16 '22 02:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Oct 01 '22 02:10 github-actions[bot]