Release notes & Roll version after i-release 0.0.1 -> 0.1.0
[nonrtric/plt/rappmanager.git] / participants / participant-impl-dme / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ========================LICENSE_START=================================
4 * O-RAN-SC
5 * %%
6 * Copyright (C) 2023 Nordix Foundation
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.
19 * ========================LICENSE_END===================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <groupId>org.o-ran-sc.nonrtric.plt</groupId>
27         <artifactId>participants</artifactId>
28         <version>0.1.0-SNAPSHOT</version>
29     </parent>
30
31     <groupId>org.o-ran-sc.nonrtric.plt.participants</groupId>
32     <artifactId>participant-impl-dme</artifactId>
33
34     <properties>
35         <maven.compiler.source>17</maven.compiler.source>
36         <maven.compiler.target>17</maven.compiler.target>
37         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38     </properties>
39
40     <dependencies>
41         <dependency>
42             <groupId>org.onap.policy.clamp.participant</groupId>
43             <artifactId>policy-clamp-participant-intermediary</artifactId>
44             <version>${onap.acm.models.version}</version>
45         </dependency>
46         <dependency>
47             <groupId>org.onap.policy.clamp</groupId>
48             <artifactId>policy-clamp-models</artifactId>
49             <version>${onap.acm.models.version}</version>
50         </dependency>
51         <dependency>
52             <groupId>org.springframework.boot</groupId>
53             <artifactId>spring-boot-starter-web</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>org.springframework.boot</groupId>
57             <artifactId>spring-boot-starter-security</artifactId>
58         </dependency>
59         <dependency>
60             <groupId>io.micrometer</groupId>
61             <artifactId>micrometer-registry-prometheus</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>org.projectlombok</groupId>
65             <artifactId>lombok</artifactId>
66             <optional>true</optional>
67         </dependency>
68         <dependency>
69             <groupId>org.openapitools</groupId>
70             <artifactId>jackson-databind-nullable</artifactId>
71             <version>${openapi.jackson.databind.nullable.version}</version>
72         </dependency>
73         <dependency>
74             <groupId>org.springframework.boot</groupId>
75             <artifactId>spring-boot-starter-test</artifactId>
76             <scope>test</scope>
77         </dependency>
78     </dependencies>
79
80     <build>
81         <plugins>
82             <plugin>
83                 <groupId>org.springframework.boot</groupId>
84                 <artifactId>spring-boot-maven-plugin</artifactId>
85                 <executions>
86                     <execution>
87                         <goals>
88                             <goal>repackage</goal>
89                         </goals>
90                         <phase>package</phase>
91                     </execution>
92                 </executions>
93             </plugin>
94             <plugin>
95                 <groupId>org.openapitools</groupId>
96                 <artifactId>openapi-generator-maven-plugin</artifactId>
97                 <version>${openapi.maven.version}</version>
98                 <executions>
99                     <execution>
100                         <id>dme-participant-spec-generator</id>
101                         <goals>
102                             <goal>generate</goal>
103                         </goals>
104                         <configuration>
105                             <inputSpec>${project.parent.basedir}/../openapi/dme/ics-api.yaml</inputSpec>
106                             <generatorName>java</generatorName>
107                             <library>resttemplate</library>
108                             <generateApiTests>false</generateApiTests>
109                             <generateModelTests>false</generateModelTests>
110                             <generateApiDocumentation>false</generateApiDocumentation>
111                             <generateModelDocumentation>false</generateModelDocumentation>
112                             <generateModels>true</generateModels>
113                             <additionalProperties>
114                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
115                             </additionalProperties>
116                             <configOptions>
117                                 <sourceFolder>src/main/java</sourceFolder>
118                                 <useJakartaEe>true</useJakartaEe>
119                                 <invokerPackage>com.oransc.participant.dme</invokerPackage>
120                                 <apiPackage>com.oransc.participant.dme.rest</apiPackage>
121                                 <modelPackage>com.oransc.participant.dme.data</modelPackage>
122                                 <generateClientAsBean>false</generateClientAsBean>
123                             </configOptions>
124                         </configuration>
125                     </execution>
126                 </executions>
127             </plugin>
128             <plugin>
129                 <groupId>io.fabric8</groupId>
130                 <artifactId>docker-maven-plugin</artifactId>
131                 <version>${docker-maven-plugin}</version>
132                 <inherited>false</inherited>
133                 <executions>
134                     <execution>
135                         <id>generate-nonrtric-plt-participant-impl-dme-image</id>
136                         <phase>package</phase>
137                         <goals>
138                             <goal>build</goal>
139                         </goals>
140                         <configuration>
141                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
142                             <images>
143                                 <image>
144                                     <name>
145                                         o-ran-sc/nonrtric-plt-participant-impl-dme:${project.version}
146                                     </name>
147                                     <build>
148                                         <cleanup>try</cleanup>
149                                         <contextDir>${project.basedir}</contextDir>
150                                         <dockerFile>Dockerfile</dockerFile>
151                                         <args>
152                                             <JAR>${project.build.finalName}.jar</JAR>
153                                         </args>
154                                         <tags>
155                                             <tag>${project.version}</tag>
156                                             <tag>latest</tag>
157                                         </tags>
158                                     </build>
159                                 </image>
160                             </images>
161                         </configuration>
162                     </execution>
163                     <execution>
164                         <id>push-nonrtric-plt-participant-impl-dme-image</id>
165                         <goals>
166                             <goal>push</goal>
167                         </goals>
168                         <configuration>
169                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
170                             <images>
171                                 <image>
172                                     <name>
173                                         o-ran-sc/nonrtric-plt-participant-impl-dme:${project.version}
174                                     </name>
175                                     <build>
176                                         <contextDir>${project.basedir}</contextDir>
177                                         <dockerFile>Dockerfile</dockerFile>
178                                         <args>
179                                             <JAR>${project.build.finalName}.jar</JAR>
180                                         </args>
181                                         <tags>
182                                             <tag>${project.version}</tag>
183                                             <tag>latest</tag>
184                                         </tags>
185                                     </build>
186                                 </image>
187                             </images>
188                         </configuration>
189                     </execution>
190                 </executions>
191             </plugin>
192         </plugins>
193     </build>
194 </project>