diff --git a/README.md b/README.md index d9a1d22..3b1972f 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,14 @@ kumuluzee: After startup OpenAPI UI is available at: http://localhost:8080/api-specs/ui. +If you want to disable OpenAPI Dependency you can set the following property: + +```yaml +kumuluzee: + openapi: + enabled: false +``` + ## Changelog Recent changes can be viewed on Github on the [Releases Page](https://github.com/kumuluz/kumuluzee-openapi/releases) diff --git a/core/pom.xml b/core/pom.xml index 6f90c74..931b5fa 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,7 +5,7 @@ kumuluzee-openapi-parent com.kumuluz.ee.openapi - 1.0.0-SNAPSHOT + 1.0.0 4.0.0 diff --git a/core/src/main/java/com/kumuluz/ee/openapi/OpenApiExtension.java b/core/src/main/java/com/kumuluz/ee/openapi/OpenApiExtension.java index 4f6baa3..2cf6d4c 100644 --- a/core/src/main/java/com/kumuluz/ee/openapi/OpenApiExtension.java +++ b/core/src/main/java/com/kumuluz/ee/openapi/OpenApiExtension.java @@ -41,7 +41,7 @@ public void init(KumuluzServerWrapper kumuluzServerWrapper, EeConfig eeConfig) { ConfigurationUtil configurationUtil = ConfigurationUtil.getInstance(); - if (configurationUtil.getBoolean("kumuluzee.openapi.spec.enabled").orElse(true)) { + if (configurationUtil.getBoolean("kumuluzee.openapi.enabled").orElse(true)) { LOG.info("Initializing OpenAPI extension."); diff --git a/openapi-ui/pom.xml b/openapi-ui/pom.xml index 82c5218..12ca49c 100644 --- a/openapi-ui/pom.xml +++ b/openapi-ui/pom.xml @@ -5,7 +5,7 @@ kumuluzee-openapi-parent com.kumuluz.ee.openapi - 1.0.0-SNAPSHOT + 1.0.0 4.0.0 @@ -42,7 +42,6 @@ - diff --git a/openapi-ui/src/main/java/com/kumuluz/ee/openapi/ui/OpenApiUiExtension.java b/openapi-ui/src/main/java/com/kumuluz/ee/openapi/ui/OpenApiUiExtension.java index 0ea7717..8f4c6a5 100644 --- a/openapi-ui/src/main/java/com/kumuluz/ee/openapi/ui/OpenApiUiExtension.java +++ b/openapi-ui/src/main/java/com/kumuluz/ee/openapi/ui/OpenApiUiExtension.java @@ -111,7 +111,7 @@ public void init(KumuluzServerWrapper kumuluzServerWrapper, EeConfig eeConfig) { URL webApp = ResourceUtils.class.getClassLoader().getResource("swagger-ui"); if (webApp != null && configurationUtil.getBoolean("kumuluzee.openapi.ui.enabled").orElse(true) && configurationUtil - .getBoolean("kumuluzee.openapi.spec.enabled").orElse(true)) { + .getBoolean("kumuluzee.openapi.enabled").orElse(true)) { swaggerUiParams.put("resourceBase", webApp.toString()); server.registerServlet(DefaultServlet.class, "/api-specs/ui/*", swaggerUiParams, 1); diff --git a/pom.xml b/pom.xml index 4201006..0b313c4 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.kumuluz.ee.openapi kumuluzee-openapi-parent pom - 1.0.0-SNAPSHOT + 1.0.0 core openapi-ui @@ -27,14 +27,14 @@ 1.8 UTF-8 - 2.5.2 + 2.5.3 3.6.1 1.6.8 1.6 2.0.2 3.17.0 - 2.25.1 + 2.27 2.8.10 3.5.0