Install JDK 21 and Gradle 8.5 (add to the PATH), then:
cd /tmp
git clone https://gitlab.com/DaveJarvis/KeenWrite keenwrite
cd keenwrite
gradle clean jar
The build succeeds. Then change 9.3.1 to 9.4.1, such as:
sed -i 's/flying-saucer-core:9.3.1/flying-saucer-core:9.4.1/' build.gradle
gradle clean jar
The build fails with:
> Task :compileJava FAILED
error: cannot access ParametersAreNonnullByDefault
class file for javax.annotation.ParametersAreNonnullByDefault not found
Note: Some input files use preview features of Java SE 21.
Note: Recompile with -Xlint:preview for details.
1 error
FAILURE: Build failed with an exception.
Replicate
Install JDK 21 and Gradle 8.5 (add to the PATH), then:
The build succeeds. Then change 9.3.1 to 9.4.1, such as:
The build fails with: