Skip to content

Commit 3398607

Browse files
committed
switching branch 2.x to master
2 parents 14609e6 + ddd2980 commit 3398607

File tree

248 files changed

+784
-4609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+784
-4609
lines changed

Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ node {
88
checkout scm
99
}
1010
stage('Clean') {
11-
withMaven(jdk: 'java-11', maven: 'maven') {
12-
sh "mvn clean -T100"
11+
withMaven(jdk: 'java-17', maven: 'maven-3.8.4'){
12+
sh "mvn clean -T100"
1313
}
1414
}
1515
stage('Package') {
16-
withMaven(jdk: 'java-11', maven: 'maven') {
17-
sh "mvn -Pjib verify package jib:build"
16+
withMaven(jdk: 'java-17', maven: 'maven-3.8.4'){
17+
sh "mvn -Pjib package jib:build -T100"
1818
}
1919
}
2020
stage("Deploy") {
21-
build 'springdoc-openapi-demos-deploy'
21+
build 'springdoc-openapi-demos-v2-deploy'
2222
}
2323
}

README.md

Lines changed: 11 additions & 8 deletions

SUPPORT.md

Lines changed: 1 addition & 1 deletion

springdoc-openapi-book-service/pom.xml renamed to demo-book-service/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<parent>
77
<groupId>org.springdoc</groupId>
88
<artifactId>springdoc-openapi-demos</artifactId>
9-
<version>3.1.6-SNAPSHOT</version>
9+
<version>3.1.7-SNAPSHOT</version>
1010
</parent>
11-
<artifactId>springdoc-openapi-book-service</artifactId>
11+
<artifactId>demo-book-service</artifactId>
1212

1313
<dependencies>
1414
<dependency>
@@ -17,7 +17,7 @@
1717
</dependency>
1818
<dependency>
1919
<groupId>org.springdoc</groupId>
20-
<artifactId>springdoc-openapi-ui</artifactId>
20+
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
2121
</dependency>
2222
</dependencies>
2323
<build>
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020

2121
import java.util.Collection;
2222

23-
import javax.validation.Valid;
24-
import javax.validation.constraints.NotNull;
25-
23+
import jakarta.validation.Valid;
24+
import jakarta.validation.constraints.NotNull;
2625
import org.springdoc.demo.services.book.exception.BookNotFoundException;
2726
import org.springdoc.demo.services.book.model.Book;
2827
import org.springdoc.demo.services.book.repository.BookRepository;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
package org.springdoc.demo.services.book.model;
2020

21-
import javax.validation.constraints.NotBlank;
22-
import javax.validation.constraints.Size;
21+
import jakarta.validation.constraints.NotBlank;
22+
import jakarta.validation.constraints.Size;
2323

2424
public class Book {
2525

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
server:
22
forward-headers-strategy: framework
3+
34
springdoc:
5+
api-docs:
6+
version: openapi_3_1
47
version: '@springdoc.version@'
58
swagger-ui:
69
use-root-path: true

springdoc-openapi-microservices/config-service/pom.xml renamed to demo-microservices/config-service/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<artifactId>config-service</artifactId>
66
<parent>
77
<groupId>org.springdoc</groupId>
8-
<artifactId>springdoc-openapi-microservices</artifactId>
9-
<version>3.1.6-SNAPSHOT</version>
8+
<artifactId>demo-microservices</artifactId>
9+
<version>3.1.7-SNAPSHOT</version>
1010
</parent>
1111

1212
<dependencies>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spring:
4848
- ContextPathRewritePath=/demo-microservices/organization/(?<path>.*), /$\{path}
4949
- RewritePath=/organization/(?<path>.*), /$\{path}
5050
- id: openapi-proxy
51-
uri: https://demos1.springdoc.org
51+
uri: https://demos.springdoc.org
5252
predicates:
5353
- Path=/demo-microservices/v3/api-docs/**
5454
filters:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ eureka:
1212
logging:
1313
pattern:
1414
console: "%d{yyyy-MM-dd HH:mm:ss} ${LOG_LEVEL_PATTERN:-%5p} %m%n"
15-
15+
1616
springdoc:
1717
cache:
1818
disabled: true

springdoc-openapi-microservices/department-service/pom.xml renamed to demo-microservices/department-service/pom.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<modelVersion>4.0.0</modelVersion>
55
<parent>
66
<groupId>org.springdoc</groupId>
7-
<artifactId>springdoc-openapi-microservices</artifactId>
8-
<version>3.1.6-SNAPSHOT</version>
7+
<artifactId>demo-microservices</artifactId>
8+
<version>3.1.7-SNAPSHOT</version>
99
</parent>
1010
<artifactId>department-service</artifactId>
1111

@@ -34,13 +34,9 @@
3434
<groupId>org.springframework.boot</groupId>
3535
<artifactId>spring-boot-starter-actuator</artifactId>
3636
</dependency>
37-
<dependency>
38-
<groupId>org.springframework.cloud</groupId>
39-
<artifactId>spring-cloud-starter-sleuth</artifactId>
40-
</dependency>
4137
<dependency>
4238
<groupId>org.springdoc</groupId>
43-
<artifactId>springdoc-openapi-webmvc-core</artifactId>
39+
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
4440
</dependency>
4541
</dependencies>
4642

springdoc-openapi-microservices/department-service/src/main/resources/application.yml renamed to demo-microservices/department-service/src/main/resources/application.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ spring:
55
import: "optional:configserver:${CONFIG_SERVER:http://localhost:8088}"
66
springdoc:
77
version: '@springdoc.version@'
8+
api-docs:
9+
version: openapi_3_1

springdoc-openapi-microservices/discovery-service/pom.xml renamed to demo-microservices/discovery-service/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<modelVersion>4.0.0</modelVersion>
55
<parent>
66
<groupId>org.springdoc</groupId>
7-
<artifactId>springdoc-openapi-microservices</artifactId>
8-
<version>3.1.6-SNAPSHOT</version>
7+
<artifactId>demo-microservices</artifactId>
8+
<version>3.1.7-SNAPSHOT</version>
99
</parent>
1010
<artifactId>discovery-service</artifactId>
1111

springdoc-openapi-microservices/employee-service/pom.xml renamed to demo-microservices/employee-service/pom.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<modelVersion>4.0.0</modelVersion>
55
<parent>
66
<groupId>org.springdoc</groupId>
7-
<artifactId>springdoc-openapi-microservices</artifactId>
8-
<version>3.1.6-SNAPSHOT</version>
7+
<artifactId>demo-microservices</artifactId>
8+
<version>3.1.7-SNAPSHOT</version>
99
</parent>
1010
<artifactId>employee-service</artifactId>
1111

@@ -26,13 +26,9 @@
2626
<groupId>org.springframework.boot</groupId>
2727
<artifactId>spring-boot-starter-actuator</artifactId>
2828
</dependency>
29-
<dependency>
30-
<groupId>org.springframework.cloud</groupId>
31-
<artifactId>spring-cloud-starter-sleuth</artifactId>
32-
</dependency>
3329
<dependency>
3430
<groupId>org.springdoc</groupId>
35-
<artifactId>springdoc-openapi-webmvc-core</artifactId>
31+
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
3632
</dependency>
3733
</dependencies>
3834

springdoc-openapi-microservices/employee-service/src/main/resources/application.yml renamed to demo-microservices/employee-service/src/main/resources/application.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ spring:
44
config:
55
import: "optional:configserver:${CONFIG_SERVER:http://localhost:8088}"
66
springdoc:
7-
version: '@springdoc.version@'
7+
version: '@springdoc.version@'
8+
api-docs:
9+
version: openapi_3_1

springdoc-openapi-microservices/gateway-service/pom.xml renamed to demo-microservices/gateway-service/pom.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<modelVersion>4.0.0</modelVersion>
55
<parent>
66
<groupId>org.springdoc</groupId>
7-
<artifactId>springdoc-openapi-microservices</artifactId>
8-
<version>3.1.6-SNAPSHOT</version>
7+
<artifactId>demo-microservices</artifactId>
8+
<version>3.1.7-SNAPSHOT</version>
99
</parent>
1010
<artifactId>gateway-service</artifactId>
1111

@@ -22,13 +22,9 @@
2222
<groupId>org.springframework.cloud</groupId>
2323
<artifactId>spring-cloud-starter-config</artifactId>
2424
</dependency>
25-
<dependency>
26-
<groupId>org.springframework.cloud</groupId>
27-
<artifactId>spring-cloud-starter-sleuth</artifactId>
28-
</dependency>
2925
<dependency>
3026
<groupId>org.springdoc</groupId>
31-
<artifactId>springdoc-openapi-webflux-ui</artifactId>
27+
<artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
3228
</dependency>
3329
</dependencies>
3430

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.ArrayList;
44
import java.util.List;
55

6-
import org.springdoc.core.GroupedOpenApi;
6+
import org.springdoc.core.models.GroupedOpenApi;
77

88
import org.springframework.boot.SpringApplication;
99
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -35,5 +35,4 @@ public List<GroupedOpenApi> apis(RouteDefinitionLocator locator) {
3535
});
3636
return groups;
3737
}
38-
3938
}

springdoc-openapi-microservices/gateway-service/src/main/resources/application.yml renamed to demo-microservices/gateway-service/src/main/resources/application.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ springdoc:
77
version: '@springdoc.version@'
88
swagger-ui:
99
use-root-path: true
10+
api-docs:
11+
version: openapi_3_1

springdoc-openapi-microservices/organization-service/pom.xml renamed to demo-microservices/organization-service/pom.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<modelVersion>4.0.0</modelVersion>
55
<parent>
66
<groupId>org.springdoc</groupId>
7-
<artifactId>springdoc-openapi-microservices</artifactId>
8-
<version>3.1.6-SNAPSHOT</version>
7+
<artifactId>demo-microservices</artifactId>
8+
<version>3.1.7-SNAPSHOT</version>
99
</parent>
1010
<artifactId>organization-service</artifactId>
1111

@@ -34,13 +34,9 @@
3434
<groupId>org.springframework.boot</groupId>
3535
<artifactId>spring-boot-starter-actuator</artifactId>
3636
</dependency>
37-
<dependency>
38-
<groupId>org.springframework.cloud</groupId>
39-
<artifactId>spring-cloud-starter-sleuth</artifactId>
40-
</dependency>
4137
<dependency>
4238
<groupId>org.springdoc</groupId>
43-
<artifactId>springdoc-openapi-webmvc-core</artifactId>
39+
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
4440
</dependency>
4541
</dependencies>
4642

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ spring:
44
config:
55
import: "optional:configserver:${CONFIG_SERVER:http://localhost:8088}"
66
springdoc:
7-
version: '@springdoc.version@'
7+
version: '@springdoc.version@'
8+
api-docs:
9+
version: openapi_3_1

springdoc-openapi-microservices/pom.xml renamed to demo-microservices/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<artifactId>springdoc-openapi-demos</artifactId>
77
<groupId>org.springdoc</groupId>
8-
<version>3.1.6-SNAPSHOT</version>
8+
<version>3.1.7-SNAPSHOT</version>
99
</parent>
1010
<packaging>pom</packaging>
1111
<modelVersion>4.0.0</modelVersion>
1212

13-
<artifactId>springdoc-openapi-microservices</artifactId>
13+
<artifactId>demo-microservices</artifactId>
1414

1515
<modules>
1616
<module>config-service</module>
File renamed without changes.

springdoc-openapi-oauth2/README.md renamed to demo-oauth2/README.md

Lines changed: 7 additions & 7 deletions
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xmlns="http://maven.apache.org/POM/4.0.0"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.springdoc</groupId>
7+
<artifactId>demo-oauth2</artifactId>
8+
<version>3.1.7-SNAPSHOT</version>
9+
</parent>
10+
<artifactId>oauth-authorization-server</artifactId>
11+
<dependencies>
12+
<dependency>
13+
<groupId>org.springframework.security</groupId>
14+
<artifactId>spring-security-oauth2-authorization-server</artifactId>
15+
</dependency>
16+
<dependency>
17+
<groupId>org.springframework.boot</groupId>
18+
<artifactId>spring-boot-starter-web</artifactId>
19+
</dependency>
20+
<dependency>
21+
<groupId>org.springframework.boot</groupId>
22+
<artifactId>spring-boot-starter-jdbc</artifactId>
23+
</dependency>
24+
<dependency>
25+
<groupId>com.h2database</groupId>
26+
<artifactId>h2</artifactId>
27+
</dependency>
28+
</dependencies>
29+
</project>

0 commit comments

Comments
 (0)