Skip to content

Commit be2d398

Browse files
authored
Update spring boot starter parent version to 3.5.14 (#23809)
* update spring boot starter parent version to 3.5.14 * fix forClient * fix
1 parent 081ff08 commit be2d398

12 files changed

Lines changed: 27 additions & 27 deletions

File tree

modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/httpInterfacesConfiguration.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public abstract class HttpInterfacesAbstractConfigurator {
3535
@Bean(name = "{{configPackage}}.HttpInterfacesAbstractConfigurator.{{classVarName}}")
3636
{{classname}} {{classVarName}}HttpProxy() {
3737
{{#reactive}}
38-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
38+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
3939
{{/reactive}}
4040
{{^reactive}}
4141
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builderFor(RestClientAdapter.create(client)).build();

modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/pom-sb3.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>org.springframework.boot</groupId>
2222
<artifactId>spring-boot-starter-parent</artifactId>
23-
<version>3.3.13</version>
23+
<version>3.5.14</version>
2424
<relativePath/> <!-- lookup parent from repository -->
2525
</parent>
2626
{{/parentOverridden}}

samples/client/petstore/spring-http-interface-bean-validation/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>3.3.13</version>
15+
<version>3.5.14</version>
1616
<relativePath/> <!-- lookup parent from repository -->
1717
</parent>
1818

samples/client/petstore/spring-http-interface-noResponseEntity/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>3.3.13</version>
15+
<version>3.5.14</version>
1616
<relativePath/> <!-- lookup parent from repository -->
1717
</parent>
1818

samples/client/petstore/spring-http-interface-reactive-bean-validation/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>3.3.13</version>
15+
<version>3.5.14</version>
1616
<relativePath/> <!-- lookup parent from repository -->
1717
</parent>
1818

samples/client/petstore/spring-http-interface-reactive-bean-validation/src/main/java/org/openapitools/configuration/HttpInterfacesAbstractConfigurator.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,37 +27,37 @@ public HttpInterfacesAbstractConfigurator(final WebClient client) {
2727

2828
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.anotherFake")
2929
AnotherFakeApi anotherFakeHttpProxy() {
30-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
30+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
3131
return factory.createClient(AnotherFakeApi.class);
3232
}
3333

3434
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.fake")
3535
FakeApi fakeHttpProxy() {
36-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
36+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
3737
return factory.createClient(FakeApi.class);
3838
}
3939

4040
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.fakeClassnameTags123")
4141
FakeClassnameTags123Api fakeClassnameTags123HttpProxy() {
42-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
42+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
4343
return factory.createClient(FakeClassnameTags123Api.class);
4444
}
4545

4646
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.pet")
4747
PetApi petHttpProxy() {
48-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
48+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
4949
return factory.createClient(PetApi.class);
5050
}
5151

5252
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.store")
5353
StoreApi storeHttpProxy() {
54-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
54+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
5555
return factory.createClient(StoreApi.class);
5656
}
5757

5858
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.user")
5959
UserApi userHttpProxy() {
60-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
60+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
6161
return factory.createClient(UserApi.class);
6262
}
6363

samples/client/petstore/spring-http-interface-reactive-noResponseEntity/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>3.3.13</version>
15+
<version>3.5.14</version>
1616
<relativePath/> <!-- lookup parent from repository -->
1717
</parent>
1818

samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/configuration/HttpInterfacesAbstractConfigurator.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,37 +27,37 @@ public HttpInterfacesAbstractConfigurator(final WebClient client) {
2727

2828
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.anotherFake")
2929
AnotherFakeApi anotherFakeHttpProxy() {
30-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
30+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
3131
return factory.createClient(AnotherFakeApi.class);
3232
}
3333

3434
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.fake")
3535
FakeApi fakeHttpProxy() {
36-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
36+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
3737
return factory.createClient(FakeApi.class);
3838
}
3939

4040
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.fakeClassnameTags123")
4141
FakeClassnameTags123Api fakeClassnameTags123HttpProxy() {
42-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
42+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
4343
return factory.createClient(FakeClassnameTags123Api.class);
4444
}
4545

4646
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.pet")
4747
PetApi petHttpProxy() {
48-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
48+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
4949
return factory.createClient(PetApi.class);
5050
}
5151

5252
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.store")
5353
StoreApi storeHttpProxy() {
54-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
54+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
5555
return factory.createClient(StoreApi.class);
5656
}
5757

5858
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.user")
5959
UserApi userHttpProxy() {
60-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
60+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
6161
return factory.createClient(UserApi.class);
6262
}
6363

samples/client/petstore/spring-http-interface-reactive/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>3.3.13</version>
15+
<version>3.5.14</version>
1616
<relativePath/> <!-- lookup parent from repository -->
1717
</parent>
1818

samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/configuration/HttpInterfacesAbstractConfigurator.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,37 +27,37 @@ public HttpInterfacesAbstractConfigurator(final WebClient client) {
2727

2828
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.anotherFake")
2929
AnotherFakeApi anotherFakeHttpProxy() {
30-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
30+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
3131
return factory.createClient(AnotherFakeApi.class);
3232
}
3333

3434
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.fake")
3535
FakeApi fakeHttpProxy() {
36-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
36+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
3737
return factory.createClient(FakeApi.class);
3838
}
3939

4040
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.fakeClassnameTags123")
4141
FakeClassnameTags123Api fakeClassnameTags123HttpProxy() {
42-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
42+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
4343
return factory.createClient(FakeClassnameTags123Api.class);
4444
}
4545

4646
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.pet")
4747
PetApi petHttpProxy() {
48-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
48+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
4949
return factory.createClient(PetApi.class);
5050
}
5151

5252
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.store")
5353
StoreApi storeHttpProxy() {
54-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
54+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
5555
return factory.createClient(StoreApi.class);
5656
}
5757

5858
@Bean(name = "org.openapitools.configuration.HttpInterfacesAbstractConfigurator.user")
5959
UserApi userHttpProxy() {
60-
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
60+
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder().exchangeAdapter(WebClientAdapter.create(client)).build();
6161
return factory.createClient(UserApi.class);
6262
}
6363

0 commit comments

Comments
 (0)