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