hyperledger / fabric-gateway

Go, Node and Java client API for Hyperledger Fabric v2.4+
https://hyperledger.github.io/fabric-gateway/
Apache License 2.0
150 stars 88 forks source link

Use Java 17 for publishing #617

Closed bestbeforetoday closed 1 year ago

bestbeforetoday commented 1 year ago

Java 8 was used for safety, since the intention is to maintain compatibility with Java 8 by compiling compatible bytecode and only using Java 8 standard libraries. This caused a Javadoc failure when linking to Javadoc built with later versions of Java, since they produce a different format of package-list / element-list file. This problem surfaced when gRPC-Java started to publish builds using Java 11 instead of Java 8, and caused Javadoc warnings linking to their published Javadoc.

Use Java 17 for publishing, relying on the maven.compiler.release (javac --release) option to ensure that compiled output links to the Java 8 standard libraries. To allow this, no longer enforce exactly Java 8 in the Maven release profile.

Fix some broken links in Javadoc.