Skip to content

Commit

Permalink
Keep supporting 0.16.x train to support Spring Boot 2.7.x and cherry-…
Browse files Browse the repository at this point in the history
…pick the latest features and fixes.
  • Loading branch information
Kieun committed Nov 3, 2023
1 parent 447f03d commit 5a82211
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 8
distribution: 'temurin'
- name: Cache Gradle packages
uses: actions/cache@v3
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- master
- 'maintenance/**'
pull_request:
types: [opened, synchronize, reopened]

Expand All @@ -17,7 +18,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 8
distribution: 'temurin'
- name: Cache SonarCloud packages
uses: actions/cache@v3
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ allprojects {
subprojects {

val jacksonVersion by extra { "2.12.2" }
val springBootVersion by extra { "3.0.2" }
val springRestDocsVersion by extra { "3.0.0" }
val springBootVersion by extra { "2.1.9.RELEASE" }
val springRestDocsVersion by extra { "2.0.4.RELEASE" }
val junitVersion by extra { "5.4.2" }

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
kotlinOptions.jvmTarget = "1.8"
}

tasks.withType<Test> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ object OpenApi20Generator {
SecurityType.OAUTH2 -> addSecurity(OAUTH2_SECURITY_NAME, securityRequirements2ScopesList(securityRequirements))
SecurityType.BASIC -> addSecurity(BASIC_SECURITY_NAME, null)
SecurityType.API_KEY -> addSecurity(API_KEY_SECURITY_NAME, null)
SecurityType.JWT_BEARER -> { /* not specified for OpenApi 2.0 */ }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1229,8 +1229,7 @@ class OpenApi3GeneratorTest {
method = HTTPMethod.PUT,
headers = listOf(),
pathParameters = listOf(),
queryParameters = listOf(),
formParameters = listOf(),
requestParameters = listOf(),
securityRequirements = null,
requestFields = listOf(
FieldDescriptor(
Expand Down

0 comments on commit 5a82211

Please sign in to comment.