pedestal

ikitommi 2024-08-30T15:28:26.102689Z

Should pedestal still work with java8?

ikitommi 2024-08-30T15:30:08.120329Z

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

ikitommi 2024-08-30T15:30:33.620059Z

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

ikitommi 2024-08-30T15:31:04.976889Z

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

lread 2024-08-30T15:31:36.904369Z

I think jdk 11 has been the min for a while https://github.com/pedestal/pedestal/blob/master/CHANGELOG.md#060---12-jun-2023

ikitommi 2024-08-30T15:31:38.779199Z

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

lread 2024-08-30T15:32:10.812479Z

And jetty 11 has a min of jdk 11

🎯 1
ikitommi 2024-08-30T15:32:24.191899Z

thanks, that explains.

πŸ‘ 1
ikitommi 2024-08-30T15:32:59.701299Z

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

hlship 2024-08-30T18:48:54.230429Z

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