From 50f42bd19fe752717823ba9ef1ffe932c47d05f4 Mon Sep 17 00:00:00 2001 From: Pawel Kasperkiewicz Date: Tue, 4 Feb 2020 14:21:29 +0100 Subject: Create project structure Issue-ID: AAF-995 Signed-off-by: Pawel Kasperkiewicz Change-Id: Ib9e2314e96e3d3e1bdae8fccbab3f8047cec1329 --- certService/LICENSE.txt | 38 ++++++ certService/README.md | 20 +++ certService/pom.xml | 144 +++++++++++++++++++++ .../aaf/certservice/CertServiceApplication.java | 33 +++++ .../src/main/resources/application.properties | 0 .../certservice/CertServiceApplicationTests.java | 33 +++++ 6 files changed, 268 insertions(+) create mode 100644 certService/LICENSE.txt create mode 100644 certService/README.md create mode 100644 certService/pom.xml create mode 100644 certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java create mode 100644 certService/src/main/resources/application.properties create mode 100644 certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java (limited to 'certService') diff --git a/certService/LICENSE.txt b/certService/LICENSE.txt new file mode 100644 index 00000000..ec57efca --- /dev/null +++ b/certService/LICENSE.txt @@ -0,0 +1,38 @@ +/* +* ============LICENSE_START========================================== +* =================================================================== +* Copyright (c) 2020 Nokia. 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============================================ +* +*/ + diff --git a/certService/README.md b/certService/README.md new file mode 100644 index 00000000..63956e28 --- /dev/null +++ b/certService/README.md @@ -0,0 +1,20 @@ +# Cert service + +### For developers + * AAF Cert Service is a Spring Boot application + * Code style + Use Google code formatter in your IDE. + For IntelliJ use [https://plugins.jetbrains.com/plugin/8527-google-java-format] + For other IDEs use []https://github.com/google/google-java-format] + +### Running Locally + ``` + mvn spring-boot:run + + ``` + +### Project building + ``` + mvn clean package + + ``` diff --git a/certService/pom.xml b/certService/pom.xml new file mode 100644 index 00000000..b5410e5c --- /dev/null +++ b/certService/pom.xml @@ -0,0 +1,144 @@ + + + + 4.0.0 + + org.onap.oparent + oparent + 3.0.0 + + + org.onap.aaf + cert-service + 0.0.1-SNAPSHOT + cert-service + Certification service + jar + + + 11 + 3.11.1 + 3.2.4 + 5.2.3.RELEASE + 2.2.4.RELEASE + 3.0.1 + 3.0.0-M1 + + + + + + + org.springframework.boot + spring-boot-dependencies + ${spring-boot-starter.version} + pom + import + + + + + + + org.springframework.boot + spring-boot-starter-web + ${spring-boot-starter.version} + + + org.springframework.boot + spring-boot-starter-test + ${spring-boot-starter.version} + test + + + org.junit.vintage + junit-vintage-engine + + + + + org.mockito + mockito-core + ${mockito-core.version} + test + + + org.assertj + assertj-core + ${assertj-core.version} + test + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + ${spring-boot-starter.version} + + + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + maven-javadoc-plugin + + true + false + false + + + + aggregate + site + + aggregate + + + + attach-javadoc + + jar + + + + + + + + diff --git a/certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java b/certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java new file mode 100644 index 00000000..c121e7c9 --- /dev/null +++ b/certService/src/main/java/org/onap/aaf/certservice/CertServiceApplication.java @@ -0,0 +1,33 @@ +/* + * ============LICENSE_START======================================================= + * PROJECT + * ================================================================================ + * Copyright (C) 2020 Nokia. 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.aaf.certservice; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class CertServiceApplication { + + public static void main(String[] args) { + SpringApplication.run(CertServiceApplication.class, args); + } + +} diff --git a/certService/src/main/resources/application.properties b/certService/src/main/resources/application.properties new file mode 100644 index 00000000..e69de29b diff --git a/certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java b/certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java new file mode 100644 index 00000000..fe2dcfe2 --- /dev/null +++ b/certService/src/test/java/org/onap/aaf/certservice/CertServiceApplicationTests.java @@ -0,0 +1,33 @@ +/* + * ============LICENSE_START======================================================= + * PROJECT + * ================================================================================ + * Copyright (C) 2020 Nokia. 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.aaf.certservice; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class CertServiceApplicationTests { + + @Test + void contextLoads() { + } + +} -- cgit 1.2.3-korg