* testOnJdk8 is not run by default
* If testJdk8 Gradle property is set, run testOnJdk8 as part of `check`
* Set testJdk8 in gradle.yml Github Actions workflow
Notable changes:
* Gradle 7.3 is the first Gradle release to officially
support JDK 17
* Gradle 7.3.2 includes log4j mitigations to protect against
build dependencies pulling in the bad log4j.
Temurin is the Eclipse Foundation’s successor to AdoptOpenJDK
and is likely to continue to be the most widely-used community
distribution.
Unfortunately, Temurin only provides JDK 8, 11, and 16,
and since bitcoinj can’t yet be built with JDK 16, we’ll
drop the JDK 15 build without replacing it with JDK 16.
Use Github Actions built-in Gradle 5.6.2
Github Actions virtual environments all include
a pre-installed Gradle that is 5.6 or later, so
we can just build with it without using the wrapper.