From d52079e3759943653c867599165cb152daec86ba Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Wed, 23 Apr 2025 10:11:07 +0100 Subject: [PATCH] Be explicit about version of auth server --- samples/grpc-oauth2/pom.xml | 2 +- .../grpc/sample/GrpcServerApplicationTests.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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