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> |
seanbeirne | 3587a62 | 2024-10-17 16:49:30 +0100 | [diff] [blame] | 30 | <version>3.5.5-SNAPSHOT</version> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 31 | <relativePath>../cps-parent/pom.xml</relativePath> |
| 32 | </parent> |
| 33 | |
| 34 | <artifactId>cps-rest</artifactId> |
| 35 | |
| 36 | <dependencies> |
| 37 | <dependency> |
| 38 | <groupId>${project.groupId}</groupId> |
| 39 | <artifactId>cps-service</artifactId> |
| 40 | </dependency> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 41 | <!-- 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] | 42 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 43 | <groupId>org.springframework.boot</groupId> |
| 44 | <artifactId>spring-boot-starter-web</artifactId> |
| 45 | <exclusions> |
| 46 | <exclusion> |
| 47 | <groupId>org.springframework.boot</groupId> |
| 48 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 49 | </exclusion> |
| 50 | </exclusions> |
| 51 | </dependency> |
| 52 | <dependency> |
| 53 | <groupId>org.springframework.boot</groupId> |
Ruslan Kashapov | 8fe579d | 2021-03-04 17:13:00 +0200 | [diff] [blame] | 54 | <artifactId>spring-boot-starter-validation</artifactId> |
| 55 | </dependency> |
| 56 | <dependency> |
| 57 | <groupId>org.springframework.boot</groupId> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 58 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 59 | </dependency> |
| 60 | <dependency> |
Bruno Sakoto | 9be188d | 2021-06-16 11:47:54 -0400 | [diff] [blame] | 61 | <groupId>org.springframework.retry</groupId> |
| 62 | <artifactId>spring-retry</artifactId> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.springframework</groupId> |
| 66 | <artifactId>spring-aspects</artifactId> |
| 67 | </dependency> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 68 | <!-- A L P H A B E T I C A L D E P E N D E N C I E S --> |
| 69 | <dependency> |
| 70 | <groupId>jakarta.validation</groupId> |
| 71 | <artifactId>jakarta.validation-api</artifactId> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>io.gsonfire</groupId> |
| 75 | <artifactId>gson-fire</artifactId> |
| 76 | </dependency> |
Bruno Sakoto | 9be188d | 2021-06-16 11:47:54 -0400 | [diff] [blame] | 77 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 78 | <groupId>io.swagger.core.v3</groupId> |
| 79 | <artifactId>swagger-annotations</artifactId> |
| 80 | </dependency> |
| 81 | <dependency> |
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 82 | <groupId>org.springdoc</groupId> |
emaclee | ea7d1b4 | 2024-03-24 19:05:34 +0000 | [diff] [blame] | 83 | <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 84 | </dependency> |
| 85 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 86 | <groupId>org.apache.commons</groupId> |
| 87 | <artifactId>commons-lang3</artifactId> |
| 88 | </dependency> |
| 89 | <dependency> |
lukegleeson | d5bda88 | 2022-03-02 14:32:47 +0000 | [diff] [blame] | 90 | <groupId>org.mapstruct</groupId> |
| 91 | <artifactId>mapstruct</artifactId> |
| 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>org.mapstruct</groupId> |
| 95 | <artifactId>mapstruct-processor</artifactId> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 96 | </dependency> |
| 97 | <!-- T E S T D E P E N D E N C I E S --> |
| 98 | <dependency> |
| 99 | <groupId>org.codehaus.groovy</groupId> |
| 100 | <artifactId>groovy</artifactId> |
| 101 | <scope>test</scope> |
| 102 | </dependency> |
| 103 | <dependency> |
shivasubedi | 8a74ced | 2021-04-29 12:48:05 +0100 | [diff] [blame] | 104 | <groupId>org.codehaus.groovy</groupId> |
| 105 | <artifactId>groovy-json</artifactId> |
| 106 | <scope>test</scope> |
| 107 | </dependency> |
| 108 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 109 | <groupId>org.spockframework</groupId> |
| 110 | <artifactId>spock-core</artifactId> |
| 111 | <scope>test</scope> |
| 112 | </dependency> |
| 113 | <dependency> |
| 114 | <groupId>org.spockframework</groupId> |
| 115 | <artifactId>spock-spring</artifactId> |
| 116 | <scope>test</scope> |
| 117 | </dependency> |
| 118 | <dependency> |
| 119 | <groupId>cglib</groupId> |
| 120 | <artifactId>cglib-nodep</artifactId> |
| 121 | <scope>test</scope> |
| 122 | </dependency> |
| 123 | <dependency> |
| 124 | <groupId>org.springframework.boot</groupId> |
| 125 | <artifactId>spring-boot-starter-test</artifactId> |
| 126 | <scope>test</scope> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 127 | </dependency> |
| 128 | </dependencies> |
| 129 | |
| 130 | <build> |
| 131 | <plugins> |
| 132 | <!-- Swagger code generation. --> |
| 133 | <plugin> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 134 | <groupId>org.openapitools</groupId> |
| 135 | <artifactId>openapi-generator-maven-plugin</artifactId> |
| 136 | <version>6.6.0</version> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 137 | <executions> |
| 138 | <execution> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 139 | <id>code-gen</id> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 140 | <goals> |
| 141 | <goal>generate</goal> |
| 142 | </goals> |
| 143 | <configuration> |
Lee Anjella Macabuhay | ebb0af8 | 2024-10-03 13:47:14 +0000 | [diff] [blame] | 144 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 145 | <invokerPackage>org.onap.cps.rest.controller</invokerPackage> |
| 146 | <modelPackage>org.onap.cps.rest.model</modelPackage> |
| 147 | <apiPackage>org.onap.cps.rest.api</apiPackage> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 148 | <generatorName>spring</generatorName> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 149 | <generateSupportingFiles>false</generateSupportingFiles> |
| 150 | <configOptions> |
| 151 | <sourceFolder>src/gen/java</sourceFolder> |
| 152 | <dateLibrary>java11</dateLibrary> |
| 153 | <interfaceOnly>true</interfaceOnly> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 154 | <useSpringBoot3>true</useSpringBoot3> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 155 | <useTags>true</useTags> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 156 | <openApiNullable>false</openApiNullable> |
| 157 | <skipDefaultInterface>true</skipDefaultInterface> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 158 | </configOptions> |
| 159 | </configuration> |
| 160 | </execution> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 161 | <execution> |
| 162 | <id>openapi-yaml-gen</id> |
| 163 | <goals> |
| 164 | <goal>generate</goal> |
| 165 | </goals> |
| 166 | <phase>compile</phase> |
| 167 | <configuration> |
Lee Anjella Macabuhay | ebb0af8 | 2024-10-03 13:47:14 +0000 | [diff] [blame] | 168 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 169 | <generatorName>openapi-yaml</generatorName> |
| 170 | <configOptions> |
| 171 | <outputFile>openapi.yaml</outputFile> |
| 172 | </configOptions> |
| 173 | </configuration> |
| 174 | </execution> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 175 | </executions> |
| 176 | </plugin> |
Lee Anjella Macabuhay | ebb0af8 | 2024-10-03 13:47:14 +0000 | [diff] [blame] | 177 | <plugin> |
| 178 | <groupId>org.apache.maven.plugins</groupId> |
| 179 | <artifactId>maven-resources-plugin</artifactId> |
| 180 | <executions> |
| 181 | <execution> |
| 182 | <id>copy-resources</id> |
| 183 | <phase>compile</phase> |
| 184 | <goals> |
| 185 | <goal>copy-resources</goal> |
| 186 | </goals> |
| 187 | <configuration> |
| 188 | <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-core</outputDirectory> |
| 189 | <resources> |
| 190 | <resource> |
| 191 | <directory>${project.basedir}/target/generated-sources/openapi/</directory> |
| 192 | <includes> |
| 193 | <include>openapi.yaml</include> |
| 194 | </includes> |
| 195 | </resource> |
| 196 | </resources> |
| 197 | </configuration> |
| 198 | </execution> |
egernug | 076b1b1 | 2024-10-10 10:11:27 +0100 | [diff] [blame] | 199 | <execution> |
| 200 | <id>copy-to-doc-folder</id> |
| 201 | <phase>compile</phase> |
| 202 | <goals> |
| 203 | <goal>copy-resources</goal> |
| 204 | </goals> |
| 205 | <configuration> |
| 206 | <outputDirectory>${project.basedir}/../docs/api/swagger/cps</outputDirectory> |
| 207 | <overwrite>true</overwrite> |
| 208 | <resources> |
| 209 | <resource> |
| 210 | <directory>${project.basedir}/target/generated-sources/openapi/</directory> |
| 211 | <includes> |
| 212 | <include>openapi.yaml</include> |
| 213 | </includes> |
| 214 | </resource> |
| 215 | </resources> |
| 216 | </configuration> |
| 217 | </execution> |
Lee Anjella Macabuhay | ebb0af8 | 2024-10-03 13:47:14 +0000 | [diff] [blame] | 218 | </executions> |
| 219 | </plugin> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 220 | </plugins> |
| 221 | </build> |
| 222 | </project> |