Be explicit about version of auth server

This commit is contained in:
Dave Syer
2025-04-23 10:11:07 +01:00
parent b507f29d41
commit d52079e375
2 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@
<dependency>
<groupId>org.springframework.experimental.boot</groupId>
<artifactId>spring-boot-testjars-maven</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@@ -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