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> |
danielhanrahan | 56384d1 | 2023-09-20 17:10:40 +0100 | [diff] [blame] | 31 | <version>3.3.8-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> |
| 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> |
| 68 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 69 | <groupId>io.swagger.core.v3</groupId> |
| 70 | <artifactId>swagger-annotations</artifactId> |
| 71 | </dependency> |
| 72 | <dependency> |
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 73 | <groupId>org.springdoc</groupId> |
| 74 | <artifactId>springdoc-openapi-ui</artifactId> |
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 75 | </dependency> |
| 76 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 77 | <groupId>org.apache.commons</groupId> |
| 78 | <artifactId>commons-lang3</artifactId> |
| 79 | </dependency> |
| 80 | <dependency> |
lukegleeson | d5bda88 | 2022-03-02 14:32:47 +0000 | [diff] [blame] | 81 | <groupId>org.mapstruct</groupId> |
| 82 | <artifactId>mapstruct</artifactId> |
| 83 | </dependency> |
| 84 | <dependency> |
| 85 | <groupId>org.mapstruct</groupId> |
| 86 | <artifactId>mapstruct-processor</artifactId> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 87 | </dependency> |
| 88 | <!-- T E S T D E P E N D E N C I E S --> |
| 89 | <dependency> |
| 90 | <groupId>org.codehaus.groovy</groupId> |
| 91 | <artifactId>groovy</artifactId> |
| 92 | <scope>test</scope> |
| 93 | </dependency> |
| 94 | <dependency> |
shivasubedi | 8a74ced | 2021-04-29 12:48:05 +0100 | [diff] [blame] | 95 | <groupId>org.codehaus.groovy</groupId> |
| 96 | <artifactId>groovy-json</artifactId> |
| 97 | <scope>test</scope> |
| 98 | </dependency> |
| 99 | <dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 100 | <groupId>org.spockframework</groupId> |
| 101 | <artifactId>spock-core</artifactId> |
| 102 | <scope>test</scope> |
| 103 | </dependency> |
| 104 | <dependency> |
| 105 | <groupId>org.spockframework</groupId> |
| 106 | <artifactId>spock-spring</artifactId> |
| 107 | <scope>test</scope> |
| 108 | </dependency> |
| 109 | <dependency> |
| 110 | <groupId>cglib</groupId> |
| 111 | <artifactId>cglib-nodep</artifactId> |
| 112 | <scope>test</scope> |
| 113 | </dependency> |
| 114 | <dependency> |
| 115 | <groupId>org.springframework.boot</groupId> |
| 116 | <artifactId>spring-boot-starter-test</artifactId> |
| 117 | <scope>test</scope> |
| 118 | <exclusions> |
| 119 | <exclusion> |
| 120 | <groupId>org.junit.vintage</groupId> |
| 121 | <artifactId>junit-vintage-engine</artifactId> |
| 122 | </exclusion> |
| 123 | </exclusions> |
| 124 | </dependency> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame^] | 125 | <dependency> |
| 126 | <groupId>jakarta.validation</groupId> |
| 127 | <artifactId>jakarta.validation-api</artifactId> |
| 128 | </dependency> |
| 129 | <dependency> |
| 130 | <groupId>io.gsonfire</groupId> |
| 131 | <artifactId>gson-fire</artifactId> |
| 132 | </dependency> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 133 | </dependencies> |
| 134 | |
| 135 | <build> |
| 136 | <plugins> |
| 137 | <!-- Swagger code generation. --> |
| 138 | <plugin> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 139 | <groupId>org.openapitools</groupId> |
| 140 | <artifactId>openapi-generator-maven-plugin</artifactId> |
| 141 | <version>6.6.0</version> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 142 | <executions> |
| 143 | <execution> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 144 | <id>code-gen</id> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 145 | <goals> |
| 146 | <goal>generate</goal> |
| 147 | </goals> |
| 148 | <configuration> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 149 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 150 | <invokerPackage>org.onap.cps.rest.controller</invokerPackage> |
| 151 | <modelPackage>org.onap.cps.rest.model</modelPackage> |
| 152 | <apiPackage>org.onap.cps.rest.api</apiPackage> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 153 | <generatorName>spring</generatorName> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 154 | <generateSupportingFiles>false</generateSupportingFiles> |
| 155 | <configOptions> |
| 156 | <sourceFolder>src/gen/java</sourceFolder> |
| 157 | <dateLibrary>java11</dateLibrary> |
| 158 | <interfaceOnly>true</interfaceOnly> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame^] | 159 | <useSpringBoot3>true</useSpringBoot3> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 160 | <useTags>true</useTags> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 161 | <openApiNullable>false</openApiNullable> |
| 162 | <skipDefaultInterface>true</skipDefaultInterface> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 163 | </configOptions> |
| 164 | </configuration> |
| 165 | </execution> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 166 | <execution> |
| 167 | <id>openapi-yaml-gen</id> |
| 168 | <goals> |
| 169 | <goal>generate</goal> |
| 170 | </goals> |
| 171 | <phase>compile</phase> |
| 172 | <configuration> |
| 173 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
| 174 | <generatorName>openapi-yaml</generatorName> |
| 175 | <configOptions> |
| 176 | <outputFile>openapi.yaml</outputFile> |
| 177 | </configOptions> |
| 178 | </configuration> |
| 179 | </execution> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 180 | </executions> |
| 181 | </plugin> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 182 | <plugin> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 183 | <groupId>org.apache.maven.plugins</groupId> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 184 | <artifactId>maven-resources-plugin</artifactId> |
| 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> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 196 | <directory>${project.basedir}/target/generated-sources/openapi/</directory> |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 197 | <includes> |
| 198 | <include>openapi.yaml</include> |
| 199 | </includes> |
| 200 | </resource> |
| 201 | </resources> |
| 202 | </configuration> |
| 203 | </execution> |
| 204 | </executions> |
| 205 | </plugin> |
Ruslan Kashapov | 5e1a5a7 | 2021-02-04 17:26:01 +0200 | [diff] [blame] | 206 | </plugins> |
| 207 | </build> |
| 208 | </project> |