From: wasala Date: Wed, 14 Nov 2018 11:07:35 +0000 (+0100) Subject: SDK initial project settings X-Git-Tag: 1.1.3~53 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=7b0c16b815d642ec4281324c0e46c2aba339004b;p=dcaegen2%2Fservices%2Fsdk.git SDK initial project settings Change-Id: I7b46a6580970c9df5baf7242bfd858030aefd078 Issue-ID: DCAEGEN2-971 Signed-off-by: wasala --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..da642ecd --- /dev/null +++ b/.gitignore @@ -0,0 +1,188 @@ +### Eclipse ### + +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# CDT- autotools +.autotools + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +# Annotation Processing +.apt_generated/ + +# Scala IDE specific (Scala & Java development for Eclipse) +.cache-main +.scala_dependencies +.worksheet + +### Eclipse Patch ### +# Eclipse Core +.project + +# JDT-specific (Eclipse Java Development Tools) +.classpath + +# Annotation Processing +.apt_generated + +.sts4-cache/ + +### Intellij ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/modules.xml +# .idea/*.iml +# .idea/modules + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### Intellij Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +*.iml +.idea +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +.idea/sonarlint + +### Java ### +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +### Maven ### +# Maven +target +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +.mvn/wrapper/maven-wrapper.jar \ No newline at end of file diff --git a/.gitreview b/.gitreview new file mode 100644 index 00000000..ac3f2e9f --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=gerrit.onap.org +port=29418 +project=dcaegen2/services/sdk.git diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 00000000..22e7ef85 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,36 @@ +/* +* ============LICENSE_START========================================== +* =================================================================== +* Copyright (c) 2018 NOKIA Intellectual Property. All rights reserved. +* =================================================================== +* +* Unless otherwise specified, all software contained herein is licensed +* under the Apache License, Version 2.0 (the "License"); +* you may not use this software 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. +* +* +* +* Unless otherwise specified, all documentation contained herein is licensed +* under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +* you may not use this documentation except in compliance with the License. +* You may obtain a copy of the License at +* +* https://creativecommons.org/licenses/by/4.0/ +* +* Unless required by applicable law or agreed to in writing, documentation +* 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============================================ +*/ \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..184d70e9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,177 @@ + + 4.0.0 + + org.onap.oparent + oparent + 1.2.1 + + + + org.onap.dcaegen2.services + sdk + 1.0.0-SNAPSHOT + + dcaegen2-services-sdk + Common SDK repo for all DCAE Services (R4) + pom + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + 8 + 5.3.1 + 5.3.1 + 1.3.1 + + + + rest-services + + + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.1.0 + + ${project.build.sourceEncoding} + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.0 + + ${java.version} + ${java.version} + ${project.build.sourceEncoding} + true + true + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.1 + + + org.junit.platform + junit-platform-surefire-provider + ${junit-platform.version} + + + + + maven-javadoc-plugin + 3.0.1 + + + maven-jar-plugin + 3.1.0 + + + maven-project-info-reports-plugin + 2.9 + + + + + + maven-javadoc-plugin + + + true + false + false + + + + aggregate + site + + aggregate + + + + attach-javadoc + + jar + + + + + + maven-jar-plugin + + + + true + + + ${project.version} + + + + + + + + + + maven-project-info-reports-plugin + + + + dependencies + license + + + + + + + + + + + org.mockito + mockito-core + 2.23.0 + test + + + org.junit.platform + junit-platform-launcher + ${junit-platform.version} + test + + + org.junit.jupiter + junit-jupiter-api + ${junit-jupiter.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit-jupiter.version} + test + + + org.junit.vintage + junit-vintage-engine + ${junit-vintage.version} + test + + + + diff --git a/rest-services/aai-client/pom.xml b/rest-services/aai-client/pom.xml new file mode 100644 index 00000000..5bf48332 --- /dev/null +++ b/rest-services/aai-client/pom.xml @@ -0,0 +1,49 @@ + + + 4.0.0 + + + org.onap.dcaegen2.services.sdk + dcaegen2-services-sdk-rest-services + 1.0.0-SNAPSHOT + ../pom.xml + + + org.onap.dcaegen2.services.sdk.rest.services + aai-client + 1.0.0-SNAPSHOT + + dcaegen2-services-sdk-rest-services-aai-client + Active and Available Inventory Rest Services Module + jar + + + + org.mockito + mockito-core + test + + + org.junit.platform + junit-platform-launcher + test + + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.junit.vintage + junit-vintage-engine + test + + + \ No newline at end of file diff --git a/rest-services/cbs-client/pom.xml b/rest-services/cbs-client/pom.xml new file mode 100644 index 00000000..5a03285e --- /dev/null +++ b/rest-services/cbs-client/pom.xml @@ -0,0 +1,50 @@ + + + 4.0.0 + + + org.onap.dcaegen2.services.sdk + dcaegen2-services-sdk-rest-services + 1.0.0-SNAPSHOT + ../pom.xml + + + org.onap.dcaegen2.services.sdk.rest.services + cbs-client + 1.0.0-SNAPSHOT + + dcaegen2-services-sdk-rest-services-cbs-client + Config Binding Service Rest Services Module + jar + + + + org.mockito + mockito-core + test + + + org.junit.platform + junit-platform-launcher + test + + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.junit.vintage + junit-vintage-engine + test + + + + diff --git a/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/DummyClient.java b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/DummyClient.java new file mode 100644 index 00000000..9a80eeda --- /dev/null +++ b/rest-services/cbs-client/src/main/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/DummyClient.java @@ -0,0 +1,35 @@ +/* + * ============LICENSE_START======================================================= + * DCAEGEN2-SERVICES-SDK + * ================================================================================ + * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved. + * ================================================================================ + * 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.dcaegen2.services.sdk.rest.services.cbs.client; + +/** + * @author Przemysław Wąsala on 11/14/18 + * @version 1.0.0 + * + * Sample Class empty class / checking that java documentation will be created by maven + */ +public class DummyClient { + + public void print() { + + } + +} diff --git a/rest-services/cbs-client/src/test/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/DummyClientTest.java b/rest-services/cbs-client/src/test/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/DummyClientTest.java new file mode 100644 index 00000000..97843426 --- /dev/null +++ b/rest-services/cbs-client/src/test/java/org/onap/dcaegen2/services/sdk/rest/services/cbs/client/DummyClientTest.java @@ -0,0 +1,30 @@ +/* + * ============LICENSE_START======================================================= + * DCAEGEN2-SERVICES-SDK + * ================================================================================ + * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved. + * ================================================================================ + * 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.dcaegen2.services.sdk.rest.services.cbs.client; + +import static org.junit.jupiter.api.Assertions.*; + +/** + * @author Przemysław Wąsala on 11/14/18 + */ +class DummyClientTest { + +} \ No newline at end of file diff --git a/rest-services/dmaap-client/pom.xml b/rest-services/dmaap-client/pom.xml new file mode 100644 index 00000000..3f1d2581 --- /dev/null +++ b/rest-services/dmaap-client/pom.xml @@ -0,0 +1,50 @@ + + + 4.0.0 + + + org.onap.dcaegen2.services.sdk + dcaegen2-services-sdk-rest-services + 1.0.0-SNAPSHOT + ../pom.xml + + + org.onap.dcaegen2.services.sdk.rest.services + dmaap-client + 1.0.0-SNAPSHOT + + + dcaegen2-services-sdk-rest-services-dmaap-client + DMaaP Rest Services Module + jar + + + + org.mockito + mockito-core + test + + + org.junit.platform + junit-platform-launcher + test + + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.junit.vintage + junit-vintage-engine + test + + + \ No newline at end of file diff --git a/rest-services/pom.xml b/rest-services/pom.xml new file mode 100644 index 00000000..4f42d0ac --- /dev/null +++ b/rest-services/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + + org.onap.dcaegen2.services + sdk + 1.0.0-SNAPSHOT + ../pom.xml + + + org.onap.dcaegen2.services.sdk + dcaegen2-services-sdk-rest-services + 1.0.0-SNAPSHOT + + dcaegen2-services-sdk-rest-services + Common SDK repo for all DCAE Services (R4) + pom + + + aai-client + cbs-client + dmaap-client + + diff --git a/version.properties b/version.properties new file mode 100644 index 00000000..1b043102 --- /dev/null +++ b/version.properties @@ -0,0 +1,6 @@ +major=1 +minor=0 +patch=0 +base_version=${major}.${minor}.${patch} +release_version=${base_version} +snapshot_version=${base_version}-SNAPSHOT