blob: f076a2c55c253bf682e03142978e90b1b7a24a04 [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>
mpriyank964c5f62024-07-15 12:25:15 +01009 <version>3.5.2-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>
25 <!-- S P R I N G D E P E N D E N C I E S -->
26 <dependency>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-web</artifactId>
29 <exclusions>
30 <exclusion>
31 <groupId>org.springframework.boot</groupId>
32 <artifactId>spring-boot-starter-tomcat</artifactId>
33 </exclusion>
34 </exclusions>
35 </dependency>
36 <dependency>
37 <groupId>org.springframework.boot</groupId>
38 <artifactId>spring-boot-starter-jetty</artifactId>
39 </dependency>
40 <dependency>
41 <groupId>org.springframework.boot</groupId>
42 <artifactId>spring-boot-starter-validation</artifactId>
43 </dependency>
44 <!-- O P E N A P I D E P E N D E N C I E S -->
45 <dependency>
46 <groupId>io.swagger.core.v3</groupId>
47 <artifactId>swagger-annotations</artifactId>
48 </dependency>
49 <dependency>
50 <groupId>org.springdoc</groupId>
51 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
52 </dependency>
53 <!-- T E S T D E P E N D E N C I E S -->
54 <dependency>
55 <groupId>org.codehaus.groovy</groupId>
56 <artifactId>groovy</artifactId>
57 <scope>test</scope>
58 </dependency>
59 <dependency>
60 <groupId>org.codehaus.groovy</groupId>
61 <artifactId>groovy-json</artifactId>
62 <scope>test</scope>
63 </dependency>
64 <dependency>
65 <groupId>org.spockframework</groupId>
66 <artifactId>spock-core</artifactId>
67 <scope>test</scope>
68 </dependency>
69 <dependency>
70 <groupId>org.spockframework</groupId>
71 <artifactId>spock-spring</artifactId>
72 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter-test</artifactId>
77 <scope>test</scope>
78 </dependency>
79 </dependencies>
80
81 <build>
82 <pluginManagement>
83 <plugins>
84 <plugin>
85 <groupId>com.google.cloud.tools</groupId>
86 <artifactId>jib-maven-plugin</artifactId>
87 <configuration>
88 <container>
89 <mainClass>${app}</mainClass>
90 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
91 </container>
92 <from>
93 <image>${base.image}</image>
94 </from>
95 <to>
96 <tags>
97 <tag>latest</tag>
98 </tags>
99 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
100 </to>
101 </configuration>
102 <executions>
103 <execution>
104 <phase>package</phase>
105 <id>build</id>
106 <goals>
107 <goal>dockerBuild</goal>
108 </goals>
109 </execution>
110 <execution>
111 <phase>deploy</phase>
112 <id>buildAndPush</id>
113 <goals>
114 <goal>build</goal>
115 </goals>
116 </execution>
117 </executions>
118 </plugin>
119 </plugins>
120 </pluginManagement>
121 <plugins>
122 <!-- Swagger code generation. -->
123 <plugin>
124 <groupId>org.openapitools</groupId>
125 <artifactId>openapi-generator-maven-plugin</artifactId>
126 <version>6.6.0</version>
127 <executions>
128 <execution>
129 <id>code-gen</id>
130 <goals>
131 <goal>generate</goal>
132 </goals>
133 <configuration>
134 <inputSpec>${project.parent.basedir}/../docs/api/swagger/policy-executor/openapi.yaml</inputSpec>
135 <modelPackage>org.onap.cps.policyexecutor.stub.model</modelPackage>
136 <apiPackage>org.onap.cps.policyexecutor.stub.api</apiPackage>
137 <generatorName>spring</generatorName>
138 <generateSupportingFiles>false</generateSupportingFiles>
139 <configOptions>
140 <sourceFolder>src/gen/java</sourceFolder>
141 <dateLibrary>java11</dateLibrary>
142 <interfaceOnly>true</interfaceOnly>
143 <useSpringBoot3>true</useSpringBoot3>
144 <useTags>true</useTags>
145 <openApiNullable>false</openApiNullable>
146 <skipDefaultInterface>true</skipDefaultInterface>
147 </configOptions>
148 </configuration>
149 </execution>
150 <execution>
151 <id>openapi-yaml-gen</id>
152 <goals>
153 <goal>generate</goal>
154 </goals>
155 <phase>compile</phase>
156 <configuration>
157 <inputSpec>${project.parent.basedir}/../docs/api/swagger/policy-executor/openapi.yaml</inputSpec>
158 <generatorName>openapi-yaml</generatorName>
159 <configOptions>
160 <outputFile>openapi.yaml</outputFile>
161 </configOptions>
162 </configuration>
163 </execution>
164 </executions>
165 </plugin>
166 </plugins>
167 </build>
168
169 <profiles>
170 <profile>
171 <id>docker</id>
172 <activation>
173 <activeByDefault>true</activeByDefault>
174 </activation>
175 <build>
176 <plugins>
177 <plugin>
178 <groupId>com.google.cloud.tools</groupId>
179 <artifactId>jib-maven-plugin</artifactId>
180 <version>3.3.2</version>
181 </plugin>
182 </plugins>
183 </build>
184 </profile>
185 </profiles>
186
187
188</project>