diff --git a/mybatis-plus-extension/build.gradle b/mybatis-plus-extension/build.gradle index af120fb50..b30fcc274 100644 --- a/mybatis-plus-extension/build.gradle +++ b/mybatis-plus-extension/build.gradle @@ -20,6 +20,7 @@ dependencies { implementation "de.ruedigermoeller:fst:3.0.4-jdk17" implementation "com.github.ben-manes.caffeine:caffeine:2.9.3" testImplementation "io.github.classgraph:classgraph:4.8.176" + testImplementation "${lib."spring-context-support"}" testImplementation "${lib.h2}" testImplementation "${lib.mysql}" testImplementation "${lib.'logback-classic'}" diff --git a/mybatis-plus-extension/src/test/java/com/baomidou/mybatisplus/test/pom/GeneratePomTest.java b/mybatis-plus-extension/src/test/java/com/baomidou/mybatisplus/test/pom/GeneratePomTest.java index 45001bb34..90b1ba485 100644 --- a/mybatis-plus-extension/src/test/java/com/baomidou/mybatisplus/test/pom/GeneratePomTest.java +++ b/mybatis-plus-extension/src/test/java/com/baomidou/mybatisplus/test/pom/GeneratePomTest.java @@ -44,21 +44,12 @@ void test() throws IOException { Dependency core = dependenciesMap.get("mybatis-plus-core"); Assertions.assertEquals("compile", core.getScope()); Assertions.assertFalse(core.isOptional()); - Dependency mybatisSpring = dependenciesMap.get("mybatis-spring"); - Assertions.assertEquals("compile", mybatisSpring.getScope()); - Assertions.assertTrue(mybatisSpring.isOptional()); Dependency kotlinStdlib = dependenciesMap.get("kotlin-stdlib-jdk8"); Assertions.assertEquals("compile", kotlinStdlib.getScope()); Assertions.assertTrue(kotlinStdlib.isOptional()); Dependency kotlinReflect = dependenciesMap.get("kotlin-reflect"); Assertions.assertEquals("compile", kotlinReflect.getScope()); Assertions.assertTrue(kotlinReflect.isOptional()); - Dependency support = dependenciesMap.get("spring-context-support"); - Assertions.assertEquals("compile", support.getScope()); - Assertions.assertTrue(support.isOptional()); - Dependency jdbc = dependenciesMap.get("spring-jdbc"); - Assertions.assertEquals("compile", jdbc.getScope()); - Assertions.assertTrue(jdbc.isOptional()); Dependency slf4jApi = dependenciesMap.get("slf4j-api"); Assertions.assertEquals("compile", slf4jApi.getScope()); Assertions.assertTrue(slf4jApi.isOptional());