diff --git a/samples/grpc-oauth2/pom.xml b/samples/grpc-oauth2/pom.xml index 8f45d48..3df6e49 100644 --- a/samples/grpc-oauth2/pom.xml +++ b/samples/grpc-oauth2/pom.xml @@ -71,7 +71,7 @@ org.springframework.experimental.boot spring-boot-testjars-maven - 0.0.3 + 0.0.4 test diff --git a/samples/grpc-oauth2/src/test/java/org/springframework/grpc/sample/GrpcServerApplicationTests.java b/samples/grpc-oauth2/src/test/java/org/springframework/grpc/sample/GrpcServerApplicationTests.java index c4b9369..c9f2c52 100644 --- a/samples/grpc-oauth2/src/test/java/org/springframework/grpc/sample/GrpcServerApplicationTests.java +++ b/samples/grpc-oauth2/src/test/java/org/springframework/grpc/sample/GrpcServerApplicationTests.java @@ -124,9 +124,9 @@ public class GrpcServerApplicationTests { @OAuth2ClientProviderIssuerUri static CommonsExecWebServerFactoryBean authServer() { return CommonsExecWebServerFactoryBean.builder() - .defaultSpringBootApplicationMain() - .classpath(classpath -> classpath - .entries(MavenClasspathEntry.springBootStarter("oauth2-authorization-server"))); + .useGenericSpringBootMain() + .classpath(classpath -> classpath.entries(new MavenClasspathEntry( + "org.springframework.boot:spring-boot-starter-oauth2-authorization-server:3.4.4"))); } @Bean