blob: 65de1c54a3f1427b0ef005cb533daa04b595e93c [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>
Brinda Santh5c094c62020-01-31 14:41:41 -050025 <version>1.5.2-SNAPSHOT</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>
Timoney, Dan (dt5972)1926b372019-09-11 10:54:30 -040031 <version>0.7.0-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">
114 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true"
115 classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
116 <arg value="src/**/*.kt"/>
117 </java>
118 </target>
119 <skip>${format.skipValidate}</skip>
120 </configuration>
121 <goals>
122 <goal>run</goal>
123 </goals>
124 </execution>
125 <execution>
126 <!-- Built-in formatter So that you wouldn't have to fix all style violations by hand.-->
127 <id>format-kotlin</id>
128 <phase>process-sources</phase>
129 <configuration>
130 <target name="ktlint">
131 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true"
132 classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
133 <arg value="-F"/>
134 <arg value="src/**/*.kt"/>
135 </java>
136 </target>
137 <skip>${format.skipExecute}</skip>
138 </configuration>
139 <goals>
140 <goal>run</goal>
141 </goals>
142 </execution>
143 </executions>
144 <dependencies>
145 <dependency>
146 <groupId>com.pinterest</groupId>
147 <artifactId>ktlint</artifactId>
148 <version>0.35.0</version>
149 </dependency>
150 </dependencies>
151 </plugin>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100152 </plugins>
153 </build>
Arundathi Patil3d026852018-12-14 23:03:55 +0530154
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100155 <profiles>
156 <profile>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400157 <id>blackduck</id>
158 <activation>
159 <property>
160 <name>blackduck-scan</name>
161 </property>
162 </activation>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100163 <build>
164 <plugins>
165 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400166 <groupId>com.blackducksoftware.integration</groupId>
167 <artifactId>hub-maven-plugin</artifactId>
168 <version>1.4.0</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100169 <inherited>false</inherited>
170 <configuration>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400171 <hubProjectName>${project.name}</hubProjectName>
172 <outputDirectory>${project.basedir}</outputDirectory>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100173 </configuration>
174 <executions>
175 <execution>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400176 <id>create-bdio-file</id>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100177 <phase>package</phase>
178 <goals>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400179 <goal>createHubOutput</goal>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100180 </goals>
181 </execution>
182 </executions>
183 </plugin>
184 </plugins>
185 </build>
186 </profile>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100187
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -0400188 <!-- Profile to format skip validate or execute -->
189 <profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000190 <id>format</id>
191 <properties>
192 <format.skipValidate>true</format.skipValidate>
193 <format.skipExecute>false</format.skipExecute>
194 </properties>
195 </profile>
Timoney, Dan (dt5972)dc863f42019-12-11 12:28:44 -0500196 <profile>
197 <id>dependency-list</id>
198 <build>
199 <plugins>
200 <plugin>
201 <groupId>com.github.ferstl</groupId>
202 <artifactId>depgraph-maven-plugin</artifactId>
203 <executions>
204 <execution>
205 <phase>validate</phase>
206 <inherited>false</inherited>
207 <goals>
208 <goal>aggregate</goal>
209 </goals>
210 </execution>
211 </executions>
212 </plugin>
213 <plugin>
214 <groupId>org.codehaus.mojo</groupId>
215 <artifactId>build-helper-maven-plugin</artifactId>
216 <executions>
217 <execution>
218 <id>attach-artifacts</id>
219 <phase>package</phase>
220 <inherited>false</inherited>
221 <goals>
222 <goal>attach-artifact</goal>
223 </goals>
224 <configuration>
225 <artifacts>
226 <artifact>
227 <file>${dependency-list.file}</file>
228 <type>txt</type>
229 <classifier>dependencies</classifier>
230 </artifact>
231 </artifacts>
232 </configuration>
233 </execution>
234 </executions>
235 </plugin>
236 </plugins>
237 </build>
238 </profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000239 </profiles>
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -0400240</project>