From 22fe2165bed771fdd4c452891646076aecb22ac3 Mon Sep 17 00:00:00 2001 From: Renu Kumari Date: Thu, 22 Jul 2021 11:53:53 -0400 Subject: generating swagger-ui and controller interface using openapi.yml Issue-ID: CPS-387 Signed-off-by: Renu Kumari Change-Id: I3e9742407148efcb16d8d79411e4de6738796f86 --- pom.xml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 2 deletions(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index 161c7e5..5f82356 100755 --- a/pom.xml +++ b/pom.xml @@ -15,6 +15,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + SPDX-License-Identifier: Apache-2.0 ============LICENSE_END========================================================= --> @@ -36,7 +38,6 @@ CPS Temporal Service - org.onap.cps.temporal.Application nexus3.onap.org:10001/ nexus3.onap.org:10003/ ${docker.repository.pull}onap/integration-java11:8.0.0 @@ -45,7 +46,8 @@ yyyyMMdd'T'HHmmss'Z' 0.8 - 1.0.1 + + 1.1.0-SNAPSHOT 1.4.2.Final @@ -113,6 +115,11 @@ cps-events 1.1.0-SNAPSHOT + + org.springdoc + springdoc-openapi-ui + 1.5.9 + org.postgresql @@ -178,6 +185,17 @@ + + + docs/api + static + true + + + src/main/resources + true + + org.apache.maven.plugins @@ -202,6 +220,14 @@ org.springframework.boot spring-boot-maven-plugin 2.3.3.RELEASE + + + + build-info + repackage + + + Max + true Low @@ -390,6 +417,9 @@ check + + org/onap/cps/temporal/controller/rest/model/* + ${project.build.directory}/code-coverage/jacoco-ut.exec @@ -416,6 +446,32 @@ + + io.swagger.codegen.v3 + swagger-codegen-maven-plugin + 3.0.27 + + + + generate + + + ${project.basedir}/docs/api/swagger/openapi.yml + org.onap.cps.temporal.controller.rest + org.onap.cps.temporal.controller.rest.model + org.onap.cps.temporal.controller.rest + spring + false + + src/gen/java + java11 + true + true + + + + + -- cgit 1.2.3-korg