Skip to content

How to upgrade swagger libs

Thomas Cujé edited this page Dec 21, 2017 · 2 revisions

As requested from https://requirements-bazaar.org/projects/14/categories/14/requirements/1782 this page contains all information to upgrade the swagger libs shipped with las2peer.

Swagger Core

  1. in restmapper/ivy.xml in line

<dependency org="io.swagger" name="swagger-jersey2-jaxrs" rev="1.5.12" />

replace rev="1.5.12" with the desired new version, like rev="2.0.0"

Don't forget to update the classpath!

Swagger UI

  1. in webconnector/ivy.xml in line

<dependency org="org.webjars" name="swagger-ui" rev="3.6.1" />

replace rev="3.6.1" with the desired new version, like rev="3.7.0"

  1. in webconnector/frontend/src/view-status.html check if the icon path is still valid

  2. in webconnector/src/main/java/i5/las2peer/connectors/webConnector/handler/SwaggerUIHandler.java in line

String resourceName = "/META-INF/resources/webjars/swagger-ui/3.6.1/" + filename;

replace the version number with the upgraded version number.

Don't forget to update the classpath!