shivasubedi | 8df61a9 | 2021-06-16 14:43:18 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Bruno Sakoto | f05a503 | 2021-03-03 18:27:54 -0500 | [diff] [blame] | 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (c) 2020 Linux Foundation. |
lukegleeson | 7e243c9 | 2023-04-20 15:32:12 +0100 | [diff] [blame] | 5 | Modifications Copyright (C) 2020-2023 Nordix Foundation. |
Bruno Sakoto | f05a503 | 2021-03-03 18:27:54 -0500 | [diff] [blame] | 6 | Modifications Copyright (C) 2021 Bell Canada. |
| 7 | ================================================================================ |
| 8 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | you may not use this file except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 19 | |
| 20 | SPDX-License-Identifier: Apache-2.0 |
Bruno Sakoto | f05a503 | 2021-03-03 18:27:54 -0500 | [diff] [blame] | 21 | ============LICENSE_END========================================================= |
| 22 | --> |
| 23 | |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 24 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 25 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 26 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 27 | <modelVersion>4.0.0</modelVersion> |
| 28 | <parent> |
| 29 | <groupId>org.onap.cps</groupId> |
| 30 | <artifactId>cps-parent</artifactId> |
mpriyank | 1d9dae0 | 2023-11-09 14:11:26 +0000 | [diff] [blame] | 31 | <version>3.4.1-SNAPSHOT</version> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 32 | <relativePath>../cps-parent/pom.xml</relativePath> |
| 33 | </parent> |
| 34 | |
| 35 | <artifactId>cps-rest</artifactId> |
| 36 | |
| 37 | <dependencies> |
| 38 | <dependency> |
| 39 | <groupId>${project.groupId}</groupId> |
| 40 | <artifactId>cps-service</artifactId> |
| 41 | </dependency> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 42 | <!-- S P R I N G D E P E N D E N C I E S --> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 43 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 44 | <groupId>org.springframework.boot</groupId> |
| 45 | <artifactId>spring-boot-starter-web</artifactId> |
| 46 | <exclusions> |
| 47 | <exclusion> |
| 48 | <groupId>org.springframework.boot</groupId> |
| 49 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 50 | </exclusion> |
| 51 | </exclusions> |
| 52 | </dependency> |
| 53 | <dependency> |
| 54 | <groupId>org.springframework.boot</groupId> |
Ruslan Kashapov | 8fe579d | 2021-03-04 17:13:00 +0200 | [diff] [blame] | 55 | <artifactId>spring-boot-starter-validation</artifactId> |
| 56 | </dependency> |
| 57 | <dependency> |
| 58 | <groupId>org.springframework.boot</groupId> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 59 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 60 | </dependency> |
| 61 | <dependency> |
Bruno Sakoto | 9be188d | 2021-06-16 11:47:54 -0400 | [diff] [blame] | 62 | <groupId>org.springframework.retry</groupId> |
| 63 | <artifactId>spring-retry</artifactId> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.springframework</groupId> |
| 67 | <artifactId>spring-aspects</artifactId> |
| 68 | </dependency> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 69 | <!-- A L P H A B E T I C A L D E P E N D E N C I E S --> |
| 70 | <dependency> |
| 71 | <groupId>jakarta.validation</groupId> |
| 72 | <artifactId>jakarta.validation-api</artifactId> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>io.gsonfire</groupId> |
| 76 | <artifactId>gson-fire</artifactId> |
| 77 | </dependency> |
Bruno Sakoto | 9be188d | 2021-06-16 11:47:54 -0400 | [diff] [blame] | 78 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 79 | <groupId>io.swagger.core.v3</groupId> |
| 80 | <artifactId>swagger-annotations</artifactId> |
| 81 | </dependency> |
| 82 | <dependency> |
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 83 | <groupId>org.springdoc</groupId> |
| 84 | <artifactId>springdoc-openapi-ui</artifactId> |
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 85 | </dependency> |
| 86 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 87 | <groupId>org.apache.commons</groupId> |
| 88 | <artifactId>commons-lang3</artifactId> |
| 89 | </dependency> |
| 90 | <dependency> |
lukegleeson | d5bda88 | 2022-03-02 14:32:47 +0000 | [diff] [blame] | 91 | <groupId>org.mapstruct</groupId> |
| 92 | <artifactId>mapstruct</artifactId> |
| 93 | </dependency> |
| 94 | <dependency> |
| 95 | <groupId>org.mapstruct</groupId> |
| 96 | <artifactId>mapstruct-processor</artifactId> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 97 | </dependency> |
| 98 | <!-- T E S T D E P E N D E N C I E S --> |
| 99 | <dependency> |
| 100 | <groupId>org.codehaus.groovy</groupId> |
| 101 | <artifactId>groovy</artifactId> |
| 102 | <scope>test</scope> |
| 103 | </dependency> |
| 104 | <dependency> |
shivasubedi | 8a74ced | 2021-04-29 12:48:05 +0100 | [diff] [blame] | 105 | <groupId>org.codehaus.groovy</groupId> |
| 106 | <artifactId>groovy-json</artifactId> |
| 107 | <scope>test</scope> |
| 108 | </dependency> |
| 109 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 110 | <groupId>org.spockframework</groupId> |
| 111 | <artifactId>spock-core</artifactId> |
| 112 | <scope>test</scope> |
| 113 | </dependency> |
| 114 | <dependency> |
| 115 | <groupId>org.spockframework</groupId> |
| 116 | <artifactId>spock-spring</artifactId> |
| 117 | <scope>test</scope> |
| 118 | </dependency> |
| 119 | <dependency> |
| 120 | <groupId>cglib</groupId> |
| 121 | <artifactId>cglib-nodep</artifactId> |
| 122 | <scope>test</scope> |
| 123 | </dependency> |
| 124 | <dependency> |
| 125 | <groupId>org.springframework.boot</groupId> |
| 126 | <artifactId>spring-boot-starter-test</artifactId> |
| 127 | <scope>test</scope> |
| 128 | <exclusions> |
| 129 | <exclusion> |
| 130 | <groupId>org.junit.vintage</groupId> |
| 131 | <artifactId>junit-vintage-engine</artifactId> |
| 132 | </exclusion> |
| 133 | </exclusions> |
| 134 | </dependency> |
| 135 | </dependencies> |
| 136 | |
| 137 | <build> |
| 138 | <plugins> |
| 139 | <!-- Swagger code generation. --> |
| 140 | <plugin> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 141 | <groupId>org.openapitools</groupId> |
| 142 | <artifactId>openapi-generator-maven-plugin</artifactId> |
| 143 | <version>6.6.0</version> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 144 | <executions> |
| 145 | <execution> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 146 | <id>code-gen</id> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 147 | <goals> |
| 148 | <goal>generate</goal> |
| 149 | </goals> |
| 150 | <configuration> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 151 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 152 | <invokerPackage>org.onap.cps.rest.controller</invokerPackage> |
| 153 | <modelPackage>org.onap.cps.rest.model</modelPackage> |
| 154 | <apiPackage>org.onap.cps.rest.api</apiPackage> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 155 | <generatorName>spring</generatorName> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 156 | <generateSupportingFiles>false</generateSupportingFiles> |
| 157 | <configOptions> |
| 158 | <sourceFolder>src/gen/java</sourceFolder> |
| 159 | <dateLibrary>java11</dateLibrary> |
| 160 | <interfaceOnly>true</interfaceOnly> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 161 | <useSpringBoot3>true</useSpringBoot3> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 162 | <useTags>true</useTags> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 163 | <openApiNullable>false</openApiNullable> |
| 164 | <skipDefaultInterface>true</skipDefaultInterface> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 165 | </configOptions> |
| 166 | </configuration> |
| 167 | </execution> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 168 | <execution> |
| 169 | <id>openapi-yaml-gen</id> |
| 170 | <goals> |
| 171 | <goal>generate</goal> |
| 172 | </goals> |
| 173 | <phase>compile</phase> |
| 174 | <configuration> |
| 175 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
| 176 | <generatorName>openapi-yaml</generatorName> |
| 177 | <configOptions> |
| 178 | <outputFile>openapi.yaml</outputFile> |
| 179 | </configOptions> |
| 180 | </configuration> |
| 181 | </execution> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 182 | </executions> |
| 183 | </plugin> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 184 | <plugin> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 185 | <groupId>org.apache.maven.plugins</groupId> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 186 | <artifactId>maven-resources-plugin</artifactId> |
| 187 | <executions> |
| 188 | <execution> |
| 189 | <id>copy-resources</id> |
| 190 | <phase>compile</phase> |
| 191 | <goals> |
| 192 | <goal>copy-resources</goal> |
| 193 | </goals> |
| 194 | <configuration> |
| 195 | <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-core</outputDirectory> |
| 196 | <resources> |
| 197 | <resource> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 198 | <directory>${project.basedir}/target/generated-sources/openapi/</directory> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 199 | <includes> |
| 200 | <include>openapi.yaml</include> |
| 201 | </includes> |
| 202 | </resource> |
| 203 | </resources> |
| 204 | </configuration> |
| 205 | </execution> |
| 206 | </executions> |
| 207 | </plugin> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 208 | </plugins> |
| 209 | </build> |
| 210 | </project> |