Skip to content

Commit d52079e

Browse files
committed
Be explicit about version of auth server
1 parent b507f29 commit d52079e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/grpc-oauth2/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<dependency>
7272
<groupId>org.springframework.experimental.boot</groupId>
7373
<artifactId>spring-boot-testjars-maven</artifactId>
74-
<version>0.0.3</version>
74+
<version>0.0.4</version>
7575
<scope>test</scope>
7676
</dependency>
7777
</dependencies>

samples/grpc-oauth2/src/test/java/org/springframework/grpc/sample/GrpcServerApplicationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ static class ExtraConfiguration {
124124
@OAuth2ClientProviderIssuerUri
125125
static CommonsExecWebServerFactoryBean authServer() {
126126
return CommonsExecWebServerFactoryBean.builder()
127-
.defaultSpringBootApplicationMain()
128-
.classpath(classpath -> classpath
129-
.entries(MavenClasspathEntry.springBootStarter("oauth2-authorization-server")));
127+
.useGenericSpringBootMain()
128+
.classpath(classpath -> classpath.entries(new MavenClasspathEntry(
129+
"org.springframework.boot:spring-boot-starter-oauth2-authorization-server:3.4.4")));
130130
}
131131

132132
@Bean

0 commit comments

Comments
 (0)