blob: 35ff835505af2fc49e2e1b5b8019d17e3ce450ff [file] [log] [blame]
ToineSiebelinkd7914bc2024-07-04 15:15:36 +01001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
6 <parent>
7 <groupId>org.onap.cps</groupId>
8 <artifactId>cps-parent</artifactId>
danielhanrahan64ff4582024-08-21 16:14:53 +01009 <version>3.5.3-SNAPSHOT</version>
ToineSiebelinkd7914bc2024-07-04 15:15:36 +010010 <relativePath>../cps-parent/pom.xml</relativePath>
11 </parent>
12
13 <artifactId>policy-executor-stub</artifactId>
14
15 <properties>
16 <app>org.onap.cps.policyexecutor.stub.PolicyExecutorApplication</app>
17 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
18 <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image>
19 <image.name>policy-executor-stub</image.name>
20 <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
21 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22 </properties>
23
24 <dependencies>
ToineSiebelink53375822024-07-29 17:45:52 +010025 <dependency>
26 <groupId>org.projectlombok</groupId>
27 <artifactId>lombok</artifactId>
28 <scope>provided</scope>
29 </dependency>
ToineSiebelinkd7914bc2024-07-04 15:15:36 +010030 <!-- S P R I N G D E P E N D E N C I E S -->
31 <dependency>
32 <groupId>org.springframework.boot</groupId>
33 <artifactId>spring-boot-starter-web</artifactId>
34 <exclusions>
35 <exclusion>
36 <groupId>org.springframework.boot</groupId>
37 <artifactId>spring-boot-starter-tomcat</artifactId>
38 </exclusion>
39 </exclusions>
40 </dependency>
41 <dependency>
42 <groupId>org.springframework.boot</groupId>
43 <artifactId>spring-boot-starter-jetty</artifactId>
44 </dependency>
45 <dependency>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-validation</artifactId>
48 </dependency>
49 <!-- O P E N A P I D E P E N D E N C I E S -->
50 <dependency>
51 <groupId>io.swagger.core.v3</groupId>
52 <artifactId>swagger-annotations</artifactId>
53 </dependency>
54 <dependency>
55 <groupId>org.springdoc</groupId>
56 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
57 </dependency>
58 <!-- T E S T D E P E N D E N C I E S -->
59 <dependency>
60 <groupId>org.codehaus.groovy</groupId>
61 <artifactId>groovy</artifactId>
62 <scope>test</scope>
63 </dependency>
64 <dependency>
65 <groupId>org.codehaus.groovy</groupId>
66 <artifactId>groovy-json</artifactId>
67 <scope>test</scope>
68 </dependency>
69 <dependency>
70 <groupId>org.spockframework</groupId>
71 <artifactId>spock-core</artifactId>
72 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.spockframework</groupId>
76 <artifactId>spock-spring</artifactId>
77 <scope>test</scope>
78 </dependency>
79 <dependency>
80 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-test</artifactId>
82 <scope>test</scope>
83 </dependency>
84 </dependencies>
85
86 <build>
87 <pluginManagement>
88 <plugins>
89 <plugin>
90 <groupId>com.google.cloud.tools</groupId>
91 <artifactId>jib-maven-plugin</artifactId>
92 <configuration>
93 <container>
94 <mainClass>${app}</mainClass>
95 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
96 </container>
97 <from>
98 <image>${base.image}</image>
99 </from>
100 <to>
101 <tags>
102 <tag>latest</tag>
103 </tags>
104 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
105 </to>
106 </configuration>
107 <executions>
108 <execution>
109 <phase>package</phase>
110 <id>build</id>
111 <goals>
112 <goal>dockerBuild</goal>
113 </goals>
114 </execution>
115 <execution>
116 <phase>deploy</phase>
117 <id>buildAndPush</id>
118 <goals>
119 <goal>build</goal>
120 </goals>
121 </execution>
122 </executions>
123 </plugin>
124 </plugins>
125 </pluginManagement>
126 <plugins>
127 <!-- Swagger code generation. -->
128 <plugin>
129 <groupId>org.openapitools</groupId>
130 <artifactId>openapi-generator-maven-plugin</artifactId>
131 <version>6.6.0</version>
132 <executions>
133 <execution>
134 <id>code-gen</id>
135 <goals>
136 <goal>generate</goal>
137 </goals>
138 <configuration>
139 <inputSpec>${project.parent.basedir}/../docs/api/swagger/policy-executor/openapi.yaml</inputSpec>
140 <modelPackage>org.onap.cps.policyexecutor.stub.model</modelPackage>
141 <apiPackage>org.onap.cps.policyexecutor.stub.api</apiPackage>
142 <generatorName>spring</generatorName>
143 <generateSupportingFiles>false</generateSupportingFiles>
144 <configOptions>
145 <sourceFolder>src/gen/java</sourceFolder>
146 <dateLibrary>java11</dateLibrary>
147 <interfaceOnly>true</interfaceOnly>
148 <useSpringBoot3>true</useSpringBoot3>
149 <useTags>true</useTags>
150 <openApiNullable>false</openApiNullable>
151 <skipDefaultInterface>true</skipDefaultInterface>
152 </configOptions>
153 </configuration>
154 </execution>
155 <execution>
156 <id>openapi-yaml-gen</id>
157 <goals>
158 <goal>generate</goal>
159 </goals>
160 <phase>compile</phase>
161 <configuration>
162 <inputSpec>${project.parent.basedir}/../docs/api/swagger/policy-executor/openapi.yaml</inputSpec>
163 <generatorName>openapi-yaml</generatorName>
164 <configOptions>
165 <outputFile>openapi.yaml</outputFile>
166 </configOptions>
167 </configuration>
168 </execution>
169 </executions>
170 </plugin>
ToineSiebelink53375822024-07-29 17:45:52 +0100171
172 <plugin>
173 <groupId>org.jsonschema2pojo</groupId>
174 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
175 <configuration>
176 <useJakartaValidation>true</useJakartaValidation>
177 <sourceDirectory>${project.parent.basedir}/../docs/schemas/policy-executor</sourceDirectory>
178 <targetPackage>org.onap.cps.policyexecutor.stub.model</targetPackage>
179 <generateBuilders>true</generateBuilders>
180 <serializable>true</serializable>
181 <includeJsr303Annotations>true</includeJsr303Annotations>
182 </configuration>
183 </plugin>
184
ToineSiebelinkd7914bc2024-07-04 15:15:36 +0100185 </plugins>
186 </build>
187
188 <profiles>
189 <profile>
190 <id>docker</id>
191 <activation>
192 <activeByDefault>true</activeByDefault>
193 </activation>
194 <build>
195 <plugins>
196 <plugin>
197 <groupId>com.google.cloud.tools</groupId>
198 <artifactId>jib-maven-plugin</artifactId>
199 <version>3.3.2</version>
200 </plugin>
201 </plugins>
202 </build>
203 </profile>
204 </profiles>
205
206
207</project>