Skip to content

Commit

Permalink
bump up scala, sbt, swagger ui ver. and small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
onukura committed May 29, 2021
1 parent 78b0a0b commit 3ebf8a2
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 110 deletions.
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ This plugin process files only with its name in the following list.

## Supported swagger file version

This plugin uses [swagger-ui v3.28.0](https://github.com/swagger-api/swagger-ui/releases/tag/v3.28.0).
This plugin uses [swagger-ui v3.49.0](https://github.com/swagger-api/swagger-ui/releases/tag/v3.49.0).

Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0).

See also [compatibility](https://github.com/swagger-api/swagger-ui#compatibility).
For supported version fields of swagger, please see [compatibility](https://github.com/swagger-api/swagger-ui#compatibility).

## Version

Expand Down
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name := "gitbucket-swagger-plugin"
organization := "io.github.gitbucket"
version := "1.0.5"
scalaVersion := "2.13.0"
gitbucketVersion := "4.33.0"
version := "1.0.6"
scalaVersion := "2.13.6"
gitbucketVersion := "4.35.0"
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.2.8
sbt.version = 1.5.2
93 changes: 2 additions & 91 deletions src/main/resources/swagger/assets/swagger-ui-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/resources/swagger/assets/swagger-ui-bundle.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/resources/swagger/assets/swagger-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/resources/swagger/assets/swagger-ui.css.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/main/scala/Plugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Plugin extends gitbucket.core.plugin.Plugin {
new Version("1.0.3"),
new Version("1.0.4"),
new Version("1.0.5"),
new Version("1.0.6"),
)

private[this] var renderer: Option[SwaggerRenderer] = None
Expand All @@ -33,7 +34,7 @@ class Plugin extends gitbucket.core.plugin.Plugin {
}

override def shutdown(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Unit = {
renderer.map(r => r.shutdown())
renderer.foreach(r => r.shutdown())
}

override val assetsMappings = Seq("/swagger" -> "/swagger/assets")
Expand Down

0 comments on commit 3ebf8a2

Please sign in to comment.