From 49ef5e4035726ae067fe6024b3aa01ec82b4211f Mon Sep 17 00:00:00 2001 From: krishnaa96 Date: Fri, 26 Feb 2021 13:17:40 +0530 Subject: Add application code Issue-ID: CPS-243 Signed-off-by: krishnaa96 Change-Id: Iad2c1c7b33ea2d9969b8bf2284d30a206c03e41d --- cps-tbdmt-application/pom.xml | 76 +++++++++++++++++++++- .../main/java/org/onap/cps/tbdmt/Application.java | 32 +++++++++ 2 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 cps-tbdmt-application/src/main/java/org/onap/cps/tbdmt/Application.java diff --git a/cps-tbdmt-application/pom.xml b/cps-tbdmt-application/pom.xml index ac57848..5ead62f 100644 --- a/cps-tbdmt-application/pom.xml +++ b/cps-tbdmt-application/pom.xml @@ -28,4 +28,78 @@ 4.0.0 cps-tbdmt-application - \ No newline at end of file + + + org.onap.cps.tbdmt.Application + cps-tbdmt + 2.8.0 + 0.0 + nexus3.onap.org:10003/onap/ + nexus3.onap.org:10001/onap/integration-java11:8.0.0 + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.cloud + spring-cloud-starter-sleuth + + + ${project.groupId} + cps-tbdmt-rest + + + + + + com.google.cloud.tools + jib-maven-plugin + ${jib-maven-plugin.version} + + + ${app} + USE_CURRENT_TIMESTAMP + + + ${openjdk11.base.image} + + + + latest + + ${nexus.repository}${image.name}:${project.version} + + + + + package + build + + dockerBuild + + + + deploy + buildAndPush + + build + + + + + + + diff --git a/cps-tbdmt-application/src/main/java/org/onap/cps/tbdmt/Application.java b/cps-tbdmt-application/src/main/java/org/onap/cps/tbdmt/Application.java new file mode 100644 index 0000000..6e8be81 --- /dev/null +++ b/cps-tbdmt-application/src/main/java/org/onap/cps/tbdmt/Application.java @@ -0,0 +1,32 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP + * ================================================================================ + * Copyright (C) 2021 Wipro Limited. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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. + * ============LICENSE_END========================================================= + */ + +package org.onap.cps.tbdmt; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Application { + + public static void main(final String[] args) { + SpringApplication.run(Application.class, args); + } +} -- cgit 1.2.3-korg