From b805a4338fa14cad0bc3087a7e043d4ee3d59a83 Mon Sep 17 00:00:00 2001 From: Benjamin Van der Smissen Date: Mon, 29 Apr 2024 14:25:23 +0200 Subject: [PATCH] DOCKER-450 [Test] Java source = 17 (old 11) --- tomcat-base/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tomcat-base/build.gradle b/tomcat-base/build.gradle index 48fce9fb..16627442 100644 --- a/tomcat-base/build.gradle +++ b/tomcat-base/build.gradle @@ -21,8 +21,8 @@ subprojects { java { withJavadocJar() withSourcesJar() - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 // Caused by: java.lang.UnsupportedClassVersionError: org/springframework/web/SpringServletContainerInitializer has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 (unable to load class [org.springframework.web.SpringServletContainerInitializer])\ // if (tomcatVersion.contains("10")){ // sourceCompatibility = JavaVersion.VERSION_17