blob: c602f24eccaaf0c16114fabcd11121ad80fe766a [file] [log] [blame]
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -04001<?xml version="1.0" encoding="UTF-8"?>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +01002<!--
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -04003Copyright (C) 2019 Bell Canada
Brinda Santh795ca3d2019-11-20 14:27:46 -05004Modification Copyright © 2018-2019 AT&T Intellectual Property.
Arundathi Patil3d026852018-12-14 23:03:55 +05305
6Unless otherwise specified, all software contained herein is licensed
7under the Apache License, Version 2.0 (the License);
8you may not use this software except in compliance with the License.
9You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13Unless required by applicable law or agreed to in writing, software
14distributed under the License is distributed on an "AS IS" BASIS,
15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16See the License for the specific language governing permissions and
17limitations under the License.
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +010018-->
Timoney, Dan (dt5972)dfe52052019-07-17 11:07:44 -040019<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000020 <modelVersion>4.0.0</modelVersion>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040021
22 <parent>
23 <groupId>org.onap.ccsdk.parent</groupId>
Timoney, Dan (dt5972)da571512019-06-20 19:17:31 -040024 <artifactId>spring-boot-starter-parent</artifactId>
Dan Timoney114c5c12020-03-18 09:59:18 -040025 <version>1.5.2</version>
Singal, Kapil (ks220y)d39d85b2019-09-18 12:23:42 -040026 <relativePath/>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040027 </parent>
28
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040029 <groupId>org.onap.ccsdk.cds</groupId>
30 <artifactId>parent</artifactId>
Dan Timoney95dcac22020-03-30 08:21:12 -040031 <version>0.7.1-SNAPSHOT</version>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040032 <packaging>pom</packaging>
33
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -040034 <name>CDS Parent</name>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040035 <description>CCSDK Controller Design Studio</description>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000036 <url>https://wiki.onap.org</url>
37 <organization>
38 <name>ONAP</name>
39 </organization>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040040
41 <modules>
Alexis de Talhouët837f8492019-03-27 16:42:08 -040042 <module>ms</module>
Singal, Kapil (ks220y)615761d2020-02-13 11:37:37 -050043 <module>cds-ui</module>
Brinda Santh795ca3d2019-11-20 14:27:46 -050044 <module>components</module>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040045 </modules>
46
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040047 <properties>
48 <!--Don't set any language to let sonar enable multi-language support-->
Singal, Kapil (ks220y)d39d85b2019-09-18 12:23:42 -040049 <sonar.language/>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040050 <!--Provide src/main as source path so both src/main/java and src/main/kotlin are scanned-->
51 <sonar.sources>src/main</sonar.sources>
52 <!--Provide src/test as source path for test so both src/test/java and src/test/kotlin are scanned-->
53 <sonar.tests>src/test</sonar.tests>
54 <!--Only include java and kt files to the scan-->
55 <sonar.inclusions>**/*.java,**/*.kt</sonar.inclusions>
Alexis de Talhouëtd4b56bc2019-07-01 19:25:41 -040056 <!--Specify path to load jacoco XLM report, as Sonar can't load Kotlin coverage from binary report-->
Brinda Santh65bb9d02020-02-05 15:51:03 -050057 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
58 </sonar.coverage.jacoco.xmlReportPaths>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040059 <jacoco.version>0.8.3</jacoco.version>
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -040060
61 <!-- Properties for POM Format -->
62 <format.skipValidate>false</format.skipValidate>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000063 <format.skipExecute>true</format.skipExecute>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040064 </properties>
65
66 <build>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +010067 <plugins>
68 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040069 <groupId>org.jacoco</groupId>
70 <artifactId>jacoco-maven-plugin</artifactId>
71 <version>${jacoco.version}</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +010072 </plugin>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000073
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -040074 <!-- Plugin to Format/Validate POM Files -->
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000075 <plugin>
76 <groupId>org.codehaus.mojo</groupId>
77 <artifactId>tidy-maven-plugin</artifactId>
78 <version>1.1.0</version>
79 <executions>
80 <execution>
81 <id>format-pom</id>
82 <phase>process-sources</phase>
83 <goals>
84 <goal>pom</goal>
85 </goals>
86 <configuration>
87 <skip>${format.skipExecute}</skip>
88 </configuration>
89 </execution>
90 <execution>
91 <id>validate-pom</id>
92 <phase>validate</phase>
93 <goals>
94 <goal>check</goal>
95 </goals>
96 <configuration>
97 <skip>${format.skipValidate}</skip>
98 </configuration>
99 </execution>
100 </executions>
101 </plugin>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500102
103 <!-- Plugin to Format/Validate Kotlin Files -->
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-antrun-plugin</artifactId>
107 <version>1.7</version>
108 <executions>
109 <execution>
110 <id>validate-kotlin</id>
111 <phase>validate</phase>
112 <configuration>
113 <target name="ktlint">
Dan Timoney114c5c12020-03-18 09:59:18 -0400114 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500115 <arg value="src/**/*.kt"/>
116 </java>
117 </target>
118 <skip>${format.skipValidate}</skip>
119 </configuration>
120 <goals>
121 <goal>run</goal>
122 </goals>
123 </execution>
124 <execution>
125 <!-- Built-in formatter So that you wouldn't have to fix all style violations by hand.-->
126 <id>format-kotlin</id>
127 <phase>process-sources</phase>
128 <configuration>
129 <target name="ktlint">
Dan Timoney114c5c12020-03-18 09:59:18 -0400130 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500131 <arg value="-F"/>
132 <arg value="src/**/*.kt"/>
133 </java>
134 </target>
135 <skip>${format.skipExecute}</skip>
136 </configuration>
137 <goals>
138 <goal>run</goal>
139 </goals>
140 </execution>
141 </executions>
142 <dependencies>
143 <dependency>
144 <groupId>com.pinterest</groupId>
145 <artifactId>ktlint</artifactId>
146 <version>0.35.0</version>
147 </dependency>
148 </dependencies>
149 </plugin>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100150 </plugins>
151 </build>
Arundathi Patil3d026852018-12-14 23:03:55 +0530152
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100153 <profiles>
154 <profile>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400155 <id>blackduck</id>
156 <activation>
157 <property>
158 <name>blackduck-scan</name>
159 </property>
160 </activation>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100161 <build>
162 <plugins>
163 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400164 <groupId>com.blackducksoftware.integration</groupId>
165 <artifactId>hub-maven-plugin</artifactId>
166 <version>1.4.0</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100167 <inherited>false</inherited>
168 <configuration>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400169 <hubProjectName>${project.name}</hubProjectName>
170 <outputDirectory>${project.basedir}</outputDirectory>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100171 </configuration>
172 <executions>
173 <execution>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400174 <id>create-bdio-file</id>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100175 <phase>package</phase>
176 <goals>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400177 <goal>createHubOutput</goal>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100178 </goals>
179 </execution>
180 </executions>
181 </plugin>
182 </plugins>
183 </build>
184 </profile>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100185
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -0400186 <!-- Profile to format skip validate or execute -->
187 <profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000188 <id>format</id>
189 <properties>
190 <format.skipValidate>true</format.skipValidate>
191 <format.skipExecute>false</format.skipExecute>
192 </properties>
193 </profile>
Timoney, Dan (dt5972)dc863f42019-12-11 12:28:44 -0500194 <profile>
195 <id>dependency-list</id>
196 <build>
197 <plugins>
198 <plugin>
199 <groupId>com.github.ferstl</groupId>
200 <artifactId>depgraph-maven-plugin</artifactId>
201 <executions>
202 <execution>
203 <phase>validate</phase>
204 <inherited>false</inherited>
205 <goals>
206 <goal>aggregate</goal>
207 </goals>
208 </execution>
209 </executions>
210 </plugin>
211 <plugin>
212 <groupId>org.codehaus.mojo</groupId>
213 <artifactId>build-helper-maven-plugin</artifactId>
214 <executions>
215 <execution>
216 <id>attach-artifacts</id>
217 <phase>package</phase>
218 <inherited>false</inherited>
219 <goals>
220 <goal>attach-artifact</goal>
221 </goals>
222 <configuration>
223 <artifacts>
224 <artifact>
225 <file>${dependency-list.file}</file>
226 <type>txt</type>
227 <classifier>dependencies</classifier>
228 </artifact>
229 </artifacts>
230 </configuration>
231 </execution>
232 </executions>
233 </plugin>
234 </plugins>
235 </build>
236 </profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000237 </profiles>
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -0400238</project>