pedestal 2024-08-30

Should pedestal still work with java8?

trying to release new version of reitit, but the pedestal-module fails to build with java8 with error:

Execution error (UnsupportedClassVersionError) at java.lang.ClassLoader/defineClass1 (ClassLoader.java:-2).
jakarta/servlet/Servlet has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

updated dependencies, now uses [io.pedestal/pedestal.service "0.7.0"]

I fixed this by adding dependency to [jakarta.servlet/jakarta.servlet-api "5.0.0"]

reitit doesn’t use servlet to anything, so I assume this is a pedestal thing πŸ€”

And jetty 11 has a min of jdk 11

🎯 1

thanks, that explains.

πŸ‘ 1

java8 is ancient, but will not change reitit minimum for this, so will hack the test to work.

I've started rolling some changes into master (which is now Pedestal 0.8); there's a 0.7-maint branch for further 0.7.x work.

πŸŽ‰ 7