Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-225 Upgrade versions of redoc and swagger plugins #225

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static void main(String[] args) {
.description("Server description goes here")
.url("http://localhost:{port}{basePath}/" + version + "/")
.variable("port", "Server's port", "8080", "8080", "7070")
.variable("basePath", "Base path of the server", "", "", "v1")
.variable("basePath", "Base path of the server", "", "", "/v1")
)
// Based on official example: https://swagger.io/docs/specification/authentication/oauth2/
.withSecurity(openApiSecurity ->
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions javalin-plugins/javalin-redoc-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description = "Javalin ReDoc Plugin | Serve ReDoc UI for OpenAPI specification"
dependencies {
api(project(":openapi-specification"))

implementation("org.webjars.npm:redoc:2.0.0-rc.70") { // also bump redoc-ui version in OpenApiConfiguration
implementation("org.webjars.npm:redoc:2.1.4") { // also bump redoc-ui version in OpenApiConfiguration
exclude(group = "org.webjars.npm")
}
implementation("org.webjars.npm:js-tokens:5.0.0")
}
implementation("org.webjars.npm:js-tokens:8.0.2")
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ReDocConfiguration {
/* Custom base path */
var basePath: String? = null
/** ReDoc Bundle version **/
var version = "2.0.0-rc.70"
var version = "2.1.4"
/** ReDoc WebJar route */
var webJarPath = "/webjars/redoc"
}
Expand Down
4 changes: 2 additions & 2 deletions javalin-plugins/javalin-swagger-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ description = "Javalin Swagger Plugin | Serve Swagger UI for OpenAPI specificati
dependencies {
api(project(":openapi-specification"))
@Suppress("GradlePackageUpdate")
api("org.webjars:swagger-ui:3.52.5") // also bump swagger-ui version in OpenApiConfiguration
}
api("org.webjars:swagger-ui:5.17.14") // also bump swagger-ui version in OpenApiConfiguration
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SwaggerConfiguration {

// WebJar configuration
/** Swagger UI Bundle version */
var version = "3.52.5"
var version = "5.17.14"
/** Swagger UI Bundler webjar location */
var webJarPath = "/webjars/swagger-ui"

Expand Down
2 changes: 1 addition & 1 deletion wiki
Submodule wiki updated from ca83df to bffdf4
Loading