Skip to content

Commit

Permalink
Upgrade to:
Browse files Browse the repository at this point in the history
- spring-boot 3.0.0-M5
- swagger-core 2.2.3
- webjars-locator-core 0.52
- spring-cloud-function 4.0.0-M5
  • Loading branch information
bnasslahsen committed Oct 13, 2022
1 parent 4137b67 commit 5fb3f7a
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 48 deletions.
24 changes: 13 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.0-M4</version>
<version>3.0.0-M5</version>
</parent>

<licenses>
Expand Down Expand Up @@ -61,17 +61,16 @@
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
<nexus-staging-maven-plugin>1.6.8</nexus-staging-maven-plugin>
<swagger-api.version>2.2.2</swagger-api.version>
<swagger-ui.version>4.14.0</swagger-ui.version>
<swagger-api.version>2.2.3</swagger-api.version>
<swagger-ui.version>4.14.3</swagger-ui.version>
<classgraph.version>4.8.149</classgraph.version>
<webjars-locator-core.version>0.50</webjars-locator-core.version>
<webjars-locator-core.version>0.52</webjars-locator-core.version>
<gmavenplus-plugin.version>1.13.1</gmavenplus-plugin.version>
<jaxb-impl.version>2.1</jaxb-impl.version>
<javax.jws-api.version>1.1</javax.jws-api.version>
<jjwt.version>0.9.1</jjwt.version>
<spring-native.version>0.12.1</spring-native.version>
<therapi-runtime-javadoc.version>0.15.0</therapi-runtime-javadoc.version>
<spring-cloud-function.version>4.0.0-M3</spring-cloud-function.version>
<spring-cloud-function.version>4.0.0-M5</spring-cloud-function.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -125,11 +124,6 @@
<version>${jjwt.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-native</artifactId>
<version>${spring-native.version}</version>
</dependency>
<!-- spring Cloud -->
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down Expand Up @@ -335,5 +329,13 @@
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>spring-milestone</id>
<name>Spring milestone</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
6 changes: 0 additions & 6 deletions springdoc-openapi-starter-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@
<artifactId>kotlinx-coroutines-reactor</artifactId>
<scope>provided</scope>
</dependency>
<!-- Spring Native -->
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-native</artifactId>
<optional>true</optional>
</dependency>
<!-- Spring Web /Data Rest/Hateoas && For Enhanced Pageable Support-->
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,36 @@
},
"components": {
"schemas": {
"Bar": {
"type": "object",
"properties": {
"bar": {
"type": "string"
}
}
},
"Foo": {
"type": "object",
"properties": {
"foo": {
"type": "string"
}
}
},
"MyModel": {
"type": "object",
"properties": {
"thing": {
"type": "object",
"description": "Hello"
"description": "Hello",
"oneOf": [
{
"$ref": "#/components/schemas/Foo"
},
{
"$ref": "#/components/schemas/Bar"
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package test.org.springdoc.ui.app11;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.web.csrf.CookieCsrfTokenRepository;

@EnableWebSecurity
@Configuration
public class WebSecurityConf extends WebSecurityConfigurerAdapter {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void init() throws IllegalAccessException {
}

@AfterEach
private void clean() throws IllegalAccessException {
void clean() throws IllegalAccessException {
Field convertersField2 = FieldUtils.getDeclaredField(ObjectMapper.class, "_mixIns", true);
SimpleMixInResolver _mixIns = (SimpleMixInResolver) convertersField2.get(objectMapperProvider.jsonMapper());
Field convertersField3 = FieldUtils.getDeclaredField(SimpleMixInResolver.class, "_localMixIns", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void init() throws IllegalAccessException {
}

@AfterEach
private void clean() throws IllegalAccessException {
void clean() throws IllegalAccessException {
Field convertersField2 = FieldUtils.getDeclaredField(ObjectMapper.class, "_mixIns", true);
SimpleMixInResolver _mixIns = (SimpleMixInResolver) convertersField2.get(objectMapperProvider.jsonMapper());
Field convertersField3 = FieldUtils.getDeclaredField(SimpleMixInResolver.class, "_localMixIns", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void init() throws IllegalAccessException {
}

@AfterEach
private void clean() throws IllegalAccessException {
void clean() throws IllegalAccessException {
Field convertersField2 = FieldUtils.getDeclaredField(ObjectMapper.class, "_mixIns", true);
SimpleMixInResolver _mixIns = (SimpleMixInResolver) convertersField2.get(objectMapperProvider.jsonMapper());
Field convertersField3 = FieldUtils.getDeclaredField(SimpleMixInResolver.class, "_localMixIns", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void init() throws IllegalAccessException {
}

@AfterEach
private void clean() throws IllegalAccessException {
void clean() throws IllegalAccessException {
Field convertersField2 = FieldUtils.getDeclaredField(ObjectMapper.class, "_mixIns", true);
SimpleMixInResolver _mixIns = (SimpleMixInResolver) convertersField2.get(objectMapperProvider.jsonMapper());
Field convertersField3 = FieldUtils.getDeclaredField(SimpleMixInResolver.class, "_localMixIns", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,44 @@
},
"components": {
"schemas": {
"Bar": {
"type": "object",
"properties": {
"bar": {
"type": "string",
"description": "The Bar."
}
},
"description": "The type Bar."
},
"Foo": {
"type": "object",
"properties": {
"foo": {
"type": "string",
"description": "The Foo."
}
},
"description": "The type Foo."
},
"MyModel": {
"type": "object",
"properties": {
"thing": {
"type": "object",
"description": "Hello"
"description": "Hello",
"oneOf": [
{
"$ref": "#/components/schemas/Foo"
},
{
"$ref": "#/components/schemas/Bar"
}
]
}
},
"description": "The type My model."
}
}
}
}
}
23 changes: 0 additions & 23 deletions springdoc-openapi-tests/springdoc-openapi-native-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,11 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>springdoc-openapi-native-tests</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-native</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-aot-maven-plugin</artifactId>
<version>${spring-native.version}</version>
<!-- TODO, waiting for spring-native compatibility with spring-boot 3.0.0-M1-->
<!-- executions>
<execution>
<id>test-generate</id>
<goals>
<goal>test-generate</goal>
</goals>
</execution>
</executions -->
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
Expand All @@ -38,7 +39,7 @@

import static org.springdoc.core.utils.Constants.ALL_PATTERN;


@Configuration
@EnableWebSecurity
@Order(200)
public class WebSecurity extends WebSecurityConfigurerAdapter {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package test.org.springdoc.api.app8.security;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@Configuration
@EnableWebSecurity
@Order(200)
public class WebConfig extends WebSecurityConfigurerAdapter {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package test.org.springdoc.api.app9;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@Configuration
@EnableWebSecurity
@Order(200)
public class WebConfig extends WebSecurityConfigurerAdapter {
Expand Down

0 comments on commit 5fb3f7a

Please sign in to comment.