Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dependency): upgrade springfox documentation from 2.9.2 to 3.0.0 (
spinnaker#1144) Upgrading springfox fix vulnerabilities. Followed the migration steps suggested [here](https://springfox.github.io/springfox/docs/current/#migrating-from-existing-2-x-version) Replaced guava com.google.common.base.Predicate class with java.util.function.Predicate class and modified the logic to accomodate the same. Note: This upgrade has introduced a breaking change where swagger-ui location has moved from http://host/context-path/swagger-ui.html to http://host/context-path/swagger-ui/index.html OR http://host/context-path/swagger-ui/ for short. Dependency insight before the upgrade: ``` $ ./gradlew kork-swagger:dI --dependency swagger > Task :kork-swagger:dependencyInsight io.springfox:springfox-swagger-common:2.9.2 Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.springfox:springfox-swagger-common:2.9.2 \--- io.springfox:springfox-swagger2:2.9.2 +--- compileClasspath (requested io.springfox:springfox-swagger2) \--- project :spinnaker-dependencies \--- compileClasspath io.springfox:springfox-swagger-ui:2.9.2 (by constraint) Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.springfox:springfox-swagger-ui:2.9.2 \--- project :spinnaker-dependencies \--- compileClasspath io.springfox:springfox-swagger-ui -> 2.9.2 \--- compileClasspath io.springfox:springfox-swagger2:2.9.2 (by constraint) Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.springfox:springfox-swagger2:2.9.2 \--- project :spinnaker-dependencies \--- compileClasspath io.springfox:springfox-swagger2 -> 2.9.2 \--- compileClasspath io.swagger:swagger-annotations:1.5.20 (by constraint) Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.swagger:swagger-annotations:1.5.20 +--- project :spinnaker-dependencies | \--- compileClasspath +--- io.springfox:springfox-swagger-common:2.9.2 | \--- io.springfox:springfox-swagger2:2.9.2 | +--- compileClasspath (requested io.springfox:springfox-swagger2) | \--- project :spinnaker-dependencies (*) +--- io.springfox:springfox-swagger2:2.9.2 (*) \--- io.swagger:swagger-models:1.5.20 +--- io.springfox:springfox-swagger2:2.9.2 (*) \--- io.springfox:springfox-swagger-common:2.9.2 (*) io.swagger:swagger-annotations -> 1.5.20 \--- compileClasspath io.swagger:swagger-models:1.5.20 Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.swagger:swagger-models:1.5.20 +--- io.springfox:springfox-swagger-common:2.9.2 | \--- io.springfox:springfox-swagger2:2.9.2 | +--- compileClasspath (requested io.springfox:springfox-swagger2) | \--- project :spinnaker-dependencies | \--- compileClasspath \--- io.springfox:springfox-swagger2:2.9.2 (*) ``` Dependency insight after the upgrade: ``` $ ./gradlew kork-swagger:dI --dependency swagger > Task :kork-swagger:dependencyInsight io.springfox:springfox-swagger-common:3.0.0 Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.springfox:springfox-swagger-common:3.0.0 +--- io.springfox:springfox-oas:3.0.0 | \--- io.springfox:springfox-boot-starter:3.0.0 | +--- compileClasspath (requested io.springfox:springfox-boot-starter) | \--- project :spinnaker-dependencies | \--- compileClasspath \--- io.springfox:springfox-swagger2:3.0.0 +--- project :spinnaker-dependencies (*) \--- io.springfox:springfox-boot-starter:3.0.0 (*) io.springfox:springfox-swagger-ui:3.0.0 Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.springfox:springfox-swagger-ui:3.0.0 \--- io.springfox:springfox-boot-starter:3.0.0 +--- compileClasspath (requested io.springfox:springfox-boot-starter) \--- project :spinnaker-dependencies \--- compileClasspath io.springfox:springfox-swagger2:3.0.0 (by constraint) Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.springfox:springfox-swagger2:3.0.0 +--- project :spinnaker-dependencies | \--- compileClasspath \--- io.springfox:springfox-boot-starter:3.0.0 +--- compileClasspath (requested io.springfox:springfox-boot-starter) \--- project :spinnaker-dependencies (*) io.swagger:swagger-annotations:1.5.20 (by constraint) Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.swagger:swagger-annotations:1.5.20 +--- project :spinnaker-dependencies | \--- compileClasspath +--- io.springfox:springfox-swagger-common:3.0.0 | +--- io.springfox:springfox-swagger2:3.0.0 | | +--- project :spinnaker-dependencies (*) | | \--- io.springfox:springfox-boot-starter:3.0.0 | | +--- compileClasspath (requested io.springfox:springfox-boot-starter) | | \--- project :spinnaker-dependencies (*) | \--- io.springfox:springfox-oas:3.0.0 | \--- io.springfox:springfox-boot-starter:3.0.0 (*) +--- io.springfox:springfox-swagger2:3.0.0 (*) \--- io.swagger:swagger-models:1.5.20 +--- io.springfox:springfox-swagger2:3.0.0 (*) \--- io.springfox:springfox-swagger-common:3.0.0 (*) io.swagger:swagger-annotations -> 1.5.20 \--- compileClasspath io.swagger:swagger-models:1.5.20 Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.swagger:swagger-models:1.5.20 +--- io.springfox:springfox-swagger-common:3.0.0 | +--- io.springfox:springfox-swagger2:3.0.0 | | +--- project :spinnaker-dependencies | | | \--- compileClasspath | | \--- io.springfox:springfox-boot-starter:3.0.0 | | +--- compileClasspath (requested io.springfox:springfox-boot-starter) | | \--- project :spinnaker-dependencies (*) | \--- io.springfox:springfox-oas:3.0.0 | \--- io.springfox:springfox-boot-starter:3.0.0 (*) \--- io.springfox:springfox-swagger2:3.0.0 (*) io.swagger.core.v3:swagger-annotations:2.1.2 Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.swagger.core.v3:swagger-annotations:2.1.2 +--- io.springfox:springfox-oas:3.0.0 | \--- io.springfox:springfox-boot-starter:3.0.0 | +--- compileClasspath (requested io.springfox:springfox-boot-starter) | \--- project :spinnaker-dependencies | \--- compileClasspath \--- io.springfox:springfox-swagger-common:3.0.0 +--- io.springfox:springfox-swagger2:3.0.0 | +--- project :spinnaker-dependencies (*) | \--- io.springfox:springfox-boot-starter:3.0.0 (*) \--- io.springfox:springfox-oas:3.0.0 (*) io.swagger.core.v3:swagger-models:2.1.2 Variant compile: | Attribute Name | Provided | Requested | |--------------------------------|----------|--------------| | org.gradle.status | release | | | org.gradle.category | library | library | | org.gradle.libraryelements | jar | classes | | org.gradle.usage | java-api | java-api | | org.gradle.dependency.bundling | | external | | org.gradle.jvm.environment | | standard-jvm | | org.gradle.jvm.version | | 11 | io.swagger.core.v3:swagger-models:2.1.2 \--- io.springfox:springfox-oas:3.0.0 \--- io.springfox:springfox-boot-starter:3.0.0 +--- compileClasspath (requested io.springfox:springfox-boot-starter) \--- project :spinnaker-dependencies \--- compileClasspath ```
- Loading branch information