flyingsaucerproject / flyingsaucer

XML/XHTML and CSS 2.1 renderer in pure Java
Other
1.99k stars 556 forks source link

Application build fails using Flying Saucer Core 9.4.1 #260

Closed DarkTyger closed 8 months ago

DarkTyger commented 8 months ago

Replicate

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.
asolntsev commented 8 months ago

@DarkTyger Thank you for reporting the issue. Fixed in FlyingSaucer 9.5.1, please try to upgrade.