From 7d80162ab95b3211aaad7473c0750b60a53ef20e Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Fri, 10 Dec 2021 13:38:35 -0300 Subject: [PATCH] Update servlet:xml:dms to use Spring 6 Issue gh-46 --- servlet/xml/java/dms/build.gradle | 10 ++-- .../applicationContext-dms-secure.xml | 58 ++++++++----------- 2 files changed, 29 insertions(+), 39 deletions(-) diff --git a/servlet/xml/java/dms/build.gradle b/servlet/xml/java/dms/build.gradle index c9c2586..ee85829 100644 --- a/servlet/xml/java/dms/build.gradle +++ b/servlet/xml/java/dms/build.gradle @@ -9,8 +9,8 @@ repositories { } dependencies { - implementation platform("org.springframework.security:spring-security-bom:5.6.0-SNAPSHOT") - implementation platform("org.springframework:spring-framework-bom:5.3.9") + implementation platform("org.springframework.security:spring-security-bom:6.0.0-SNAPSHOT") + implementation platform("org.springframework:spring-framework-bom:6.0.0-SNAPSHOT") implementation platform("org.junit:junit-bom:5.7.0") implementation 'org.springframework:spring-beans' @@ -19,15 +19,17 @@ dependencies { implementation "org.springframework.security:spring-security-acl" implementation "org.springframework.security:spring-security-core" implementation "org.springframework.security:spring-security-config" - implementation "org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE" - implementation 'javax.servlet:jstl:1.2' implementation 'org.slf4j:slf4j-api:1.7.30' implementation 'org.slf4j:slf4j-simple:1.7.30' + providedCompile "jakarta.servlet:jakarta.servlet-api:5.0.0" + providedCompile "org.glassfish.web:jakarta.servlet.jsp.jstl:2.0.0" + runtimeOnly 'net.sf.ehcache:ehcache:2.10.5' runtimeOnly 'org.hsqldb:hsqldb:2.5.0' runtimeOnly 'org.springframework:spring-context-support' + testImplementation 'org.mockito:mockito-core:3.12.4' testImplementation "org.springframework:spring-test" testImplementation "org.springframework.security:spring-security-test" testImplementation("org.junit.jupiter:junit-jupiter-api") diff --git a/servlet/xml/java/dms/src/main/resources/applicationContext-dms-secure.xml b/servlet/xml/java/dms/src/main/resources/applicationContext-dms-secure.xml index 5a291d3..99ae123 100755 --- a/servlet/xml/java/dms/src/main/resources/applicationContext-dms-secure.xml +++ b/servlet/xml/java/dms/src/main/resources/applicationContext-dms-secure.xml @@ -62,23 +62,11 @@ - - - - - - - - - - - - @@ -139,32 +127,32 @@ + + + + + - + + - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - -