aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authoraditya puthuparambil <aditya.puthuparambil@bell.ca>2021-07-26 15:40:09 +0000
committerGerrit Code Review <gerrit@onap.org>2021-07-26 15:40:09 +0000
commit082f738ad38057c2b010a3830d4c2b2d0d7b3d37 (patch)
tree70196314fd23bef0f84719ac60ebe575bb5b17ab /pom.xml
parentbc5644f4b972f4f000043dd6c99ec828bde39730 (diff)
parent22fe2165bed771fdd4c452891646076aecb22ac3 (diff)
Merge "generating swagger-ui and controller interface using openapi.yml"
Diffstat (limited to 'pom.xml')
-rwxr-xr-xpom.xml60
1 files changed, 58 insertions, 2 deletions
diff --git a/pom.xml b/pom.xml
index 4f5020a..af98318 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 @@
<description>CPS Temporal Service</description>
<properties>
- <app>org.onap.cps.temporal.Application</app>
<docker.repository.pull>nexus3.onap.org:10001/</docker.repository.pull>
<docker.repository.push>nexus3.onap.org:10003/</docker.repository.push>
<image.base>${docker.repository.pull}onap/integration-java11:8.0.0</image.base>
@@ -45,7 +46,8 @@
<maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
<minimum-coverage>0.8</minimum-coverage>
<!-- Application dependencies versions -->
- <cps.version>1.0.1</cps.version>
+ <!--cps.version need to be changed to released Istanbul version-->
+ <cps.version>1.1.0-SNAPSHOT</cps.version>
<mapstruct.version>1.4.2.Final</mapstruct.version>
</properties>
@@ -120,6 +122,11 @@
<artifactId>cps-events</artifactId>
<version>1.1.0-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.springdoc</groupId>
+ <artifactId>springdoc-openapi-ui</artifactId>
+ <version>1.5.9</version>
+ </dependency>
<!-- Runtime dependencies-->
<dependency>
<groupId>org.postgresql</groupId>
@@ -182,6 +189,17 @@
</dependencies>
<build>
+ <resources>
+ <resource>
+ <directory>docs/api</directory>
+ <targetPath>static</targetPath>
+ <filtering>true</filtering>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -206,6 +224,14 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.3.RELEASE</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>build-info</goal>
+ <goal>repackage</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
<plugin>
<!-- The gmavenplus plugin is used to compile Groovy code. To learn more about this plugin,
@@ -333,6 +359,7 @@
to 'Low'.
-->
<effort>Max</effort>
+ <addSourceDirs>true</addSourceDirs>
<!-- Reports all bugs (other values are medium and max) -->
<threshold>Low</threshold>
<!-- Build doesn't fail if problems are found -->
@@ -394,6 +421,9 @@
<goal>check</goal>
</goals>
<configuration>
+ <excludes>
+ <exclude>org/onap/cps/temporal/controller/rest/model/*</exclude>
+ </excludes>
<dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
<rules>
<rule>
@@ -420,6 +450,32 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>io.swagger.codegen.v3</groupId>
+ <artifactId>swagger-codegen-maven-plugin</artifactId>
+ <version>3.0.27</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <inputSpec>${project.basedir}/docs/api/swagger/openapi.yml</inputSpec>
+ <invokerPackage>org.onap.cps.temporal.controller.rest</invokerPackage>
+ <modelPackage>org.onap.cps.temporal.controller.rest.model</modelPackage>
+ <apiPackage>org.onap.cps.temporal.controller.rest</apiPackage>
+ <language>spring</language>
+ <generateSupportingFiles>false</generateSupportingFiles>
+ <configOptions>
+ <sourceFolder>src/gen/java</sourceFolder>
+ <dateLibrary>java11</dateLibrary>
+ <interfaceOnly>true</interfaceOnly>
+ <useTags>true</useTags>
+ </configOptions>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>