From 7d4100a966ba64dcc24887c68f70e224071283d9 Mon Sep 17 00:00:00 2001 From: elinuxhenrik Date: Mon, 29 Nov 2021 16:20:36 +0100 Subject: [PATCH] Add go product to Maven build Issue-ID: NONRTRIC-652 Signed-off-by: elinuxhenrik Change-Id: Ic88a211a5a83a4b4fc6bc5266133d20d867c422e --- dmaap-mediator-producer/build_and_test.sh | 22 +++++++++++++++ dmaap-mediator-producer/pom.xml | 47 +++++++++++++++++++++++++++++++ pom.xml | 1 + 3 files changed, 70 insertions(+) create mode 100755 dmaap-mediator-producer/build_and_test.sh create mode 100644 dmaap-mediator-producer/pom.xml diff --git a/dmaap-mediator-producer/build_and_test.sh b/dmaap-mediator-producer/build_and_test.sh new file mode 100755 index 00000000..397124d7 --- /dev/null +++ b/dmaap-mediator-producer/build_and_test.sh @@ -0,0 +1,22 @@ +#!/bin/bash +############################################################################## +# +# Copyright (C) 2021: Nordix Foundation +# +# 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. +# +############################################################################## + +go build + +go test ./... diff --git a/dmaap-mediator-producer/pom.xml b/dmaap-mediator-producer/pom.xml new file mode 100644 index 00000000..0de66036 --- /dev/null +++ b/dmaap-mediator-producer/pom.xml @@ -0,0 +1,47 @@ + + + 4.0.0 + + oransc.org + dmaapmediatorproducer + 1.0.0 + + + + exec-maven-plugin + org.codehaus.mojo + + + Build Go binary + generate-sources + + exec + + + ${basedir}/build_and_test.sh + + + + + + + diff --git a/pom.xml b/pom.xml index d4f55002..342741a3 100644 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,7 @@ r-app-catalogue helm-manager dmaap-adaptor-java + dmaap-mediator-producer -- 2.16.6