Upgrade to Spring Boot 3.0.0

Closes gh-1342
This commit is contained in:
Stephane Nicoll
2022-11-08 16:51:10 +09:00
parent 9546fb4b8f
commit 89e59ddca7
11 changed files with 42 additions and 23 deletions

View File

@@ -33,7 +33,7 @@ class GradleConfigurationBuildCustomizerTests {
void providedRuntimeConfigurationIsAddedWithNonWarProject() {
GradleBuild build = new GradleBuild();
build.dependencies().add("lib", "com.example", "lib", DependencyScope.COMPILE);
build.dependencies().add("servlet", "javax.servlet", "servlet-api", DependencyScope.PROVIDED_RUNTIME);
build.dependencies().add("servlet", "jakarta.servlet", "jakarta.servlet-api", DependencyScope.PROVIDED_RUNTIME);
customize(build);
assertThat(build.configurations().names()).containsOnly("providedRuntime");
}
@@ -43,7 +43,7 @@ class GradleConfigurationBuildCustomizerTests {
GradleBuild build = new GradleBuild();
build.plugins().add("war");
build.dependencies().add("lib", "com.example", "lib", DependencyScope.COMPILE);
build.dependencies().add("servlet", "javax.servlet", "servlet-api", DependencyScope.PROVIDED_RUNTIME);
build.dependencies().add("servlet", "jakarta.servlet", "jakarta.servlet-api", DependencyScope.PROVIDED_RUNTIME);
customize(build);
assertThat(build.configurations().customizations()).isEmpty();
}