Merge "Remove overflow hidden / Decreasize size for visibility"
[ccsdk/cds.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2019 Bell Canada
4 Modification Copyright © 2018-2019 AT&T Intellectual Property.
5
6 Unless otherwise specified, all software contained herein is licensed
7 under the Apache License, Version 2.0 (the License);
8 you may not use this software except in compliance with the License.
9 You may obtain a copy of the License at
10
11     http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 -->
19
20 <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">
21     <modelVersion>4.0.0</modelVersion>
22
23     <parent>
24         <groupId>org.onap.ccsdk.parent</groupId>
25         <artifactId>spring-boot-starter-parent</artifactId>
26         <version>2.0.1</version>
27         <relativePath/>
28     </parent>
29
30     <groupId>org.onap.ccsdk.cds</groupId>
31     <artifactId>cds-aggregator</artifactId>
32     <version>1.0.0-SNAPSHOT</version>
33     <packaging>pom</packaging>
34
35     <name>Aggregator</name>
36     <description>CCSDK Controller Design Studio</description>
37     <url>https://wiki.onap.org</url>
38     <organization>
39         <name>ONAP</name>
40     </organization>
41
42     <modules>
43         <module>ms</module>
44         <module>cds-ui</module>
45         <module>components</module>
46     </modules>
47
48     <properties>
49         <!--Don't set any language to let sonar enable multi-language support-->
50         <sonar.language/>
51         <!--Provide src/main as source path so both src/main/java and src/main/kotlin are scanned-->
52         <sonar.sources>src/main</sonar.sources>
53         <!--Provide src/test as source path for test so both src/test/java and src/test/kotlin are scanned-->
54         <sonar.tests>src/test</sonar.tests>
55         <!--Only include java and kt files to the scan-->
56         <sonar.inclusions>**/*.java,**/*.kt</sonar.inclusions>
57         <!--Specify path to load jacoco XLM report, as Sonar can't load Kotlin coverage from binary report-->
58         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
59         </sonar.coverage.jacoco.xmlReportPaths>
60         <jacoco.version>0.8.3</jacoco.version>
61
62         <!-- Properties for POM Format -->
63         <format.skipValidate>false</format.skipValidate>
64         <format.skipExecute>true</format.skipExecute>
65         <java.version>11</java.version>
66         <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
67         <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
68     </properties>
69
70     <build>
71         <pluginManagement>
72             <plugins>
73                 <!--TODO: This plugin is broken. Find replacement-->
74                 <!-- Plugin to Format/Validate POM Files -->
75                 <!--
76                 <plugin>
77                     <groupId>org.codehaus.mojo</groupId>
78                     <artifactId>tidy-maven-plugin</artifactId>
79                     <version>1.1.0</version>
80                     <executions>
81                         <execution>
82                             <id>format-pom</id>
83                             <phase>process-sources</phase>
84                             <goals>
85                                 <goal>pom</goal>
86                             </goals>
87                             <configuration>
88                                 <skip>${format.skipExecute}</skip>
89                             </configuration>
90                         </execution>
91                         <execution>
92                             <id>validate-pom</id>
93                             <phase>validate</phase>
94                             <goals>
95                                 <goal>check</goal>
96                             </goals>
97                             <configuration>
98                                 <skip>${format.skipValidate}</skip>
99                             </configuration>
100                         </execution>
101                     </executions>
102                 </plugin>
103                 -->
104
105                 <!-- Plugin to Format/Validate Kotlin Files -->
106                 <plugin>
107                     <groupId>org.apache.maven.plugins</groupId>
108                     <artifactId>maven-antrun-plugin</artifactId>
109                     <version>1.7</version>
110                     <executions>
111                         <execution>
112                             <id>validate-kotlin</id>
113                             <phase>validate</phase>
114                             <configuration>
115                                 <target name="ktlint">
116                                     <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
117                                         <arg value="src/**/*.kt"/>
118                                     </java>
119                                 </target>
120                                 <skip>${format.skipValidate}</skip>
121                             </configuration>
122                             <goals>
123                                 <goal>run</goal>
124                             </goals>
125                         </execution>
126                         <execution>
127                             <!-- Built-in formatter So that you wouldn't have to fix all style violations by hand.-->
128                             <id>format-kotlin</id>
129                             <phase>process-sources</phase>
130                             <configuration>
131                                 <target name="ktlint">
132                                     <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" 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>
152                 <plugin>
153                     <groupId>org.apache.maven.plugins</groupId>
154                     <artifactId>maven-surefire-plugin</artifactId>
155                     <version>${maven-surefire-plugin.version}</version>
156                     <configuration>
157                         <!-- Sets the VM argument line used when unit tests are run. -->
158                         <argLine>${surefireArgLine}</argLine>
159                         <!-- Excludes integration tests when unit tests are run. -->
160                         <excludes>
161                             <exclude>**/IT*.java</exclude>
162                         </excludes>
163                     </configuration>
164                 </plugin>
165                 <plugin>
166                     <groupId>org.apache.maven.plugins</groupId>
167                     <artifactId>maven-failsafe-plugin</artifactId>
168                     <version>${maven-failsafe-plugin.version}</version>
169                     <executions>
170                         <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. -->
171                         <execution>
172                             <id>integration-tests</id>
173                             <goals>
174                                 <goal>integration-test</goal>
175                                 <goal>verify</goal>
176                             </goals>
177                             <configuration>
178                                 <!-- Sets the VM argument line used when integration tests are run. -->
179                                 <argLine>${failsafeArgLine}</argLine>
180                             </configuration>
181                         </execution>
182                     </executions>
183                 </plugin>
184                 <plugin>
185                     <groupId>org.jetbrains.kotlin</groupId>
186                     <artifactId>kotlin-maven-plugin</artifactId>
187                     <version>${kotlin.maven.version}</version>
188                     <configuration>
189                         <jvmTarget>${java.version}</jvmTarget>
190                     </configuration>
191                 </plugin>
192                 <plugin>
193                     <groupId>org.apache.maven.plugins</groupId>
194                     <artifactId>maven-compiler-plugin</artifactId>
195                     <version>${maven-compiler-plugin.version}</version>
196                     <configuration>
197                         <release>${java.version}</release>
198                         <!--explicitly remove source and target-->
199                         <source combine.self="override"/>
200                         <target combine.self="override"/>
201                     </configuration>
202                 </plugin>
203             </plugins>
204         </pluginManagement>
205         <plugins>
206             <plugin>
207                 <groupId>org.jacoco</groupId>
208                 <artifactId>jacoco-maven-plugin</artifactId>
209                 <version>${jacoco.version}</version>
210             </plugin>
211             <plugin>
212                 <groupId>org.apache.maven.plugins</groupId>
213                 <artifactId>maven-antrun-plugin</artifactId>
214             </plugin>
215             <plugin>
216                 <groupId>org.apache.maven.plugins</groupId>
217                 <artifactId>maven-surefire-plugin</artifactId>
218             </plugin>
219             <plugin>
220                 <groupId>org.apache.maven.plugins</groupId>
221                 <artifactId>maven-failsafe-plugin</artifactId>
222             </plugin>
223             <plugin>
224                 <groupId>org.apache.maven.plugins</groupId>
225                 <artifactId>maven-compiler-plugin</artifactId>
226             </plugin>
227         </plugins>
228     </build>
229
230     <profiles>
231         <profile>
232             <id>blackduck</id>
233             <activation>
234                 <property>
235                     <name>blackduck-scan</name>
236                 </property>
237             </activation>
238             <build>
239                 <plugins>
240                     <plugin>
241                         <groupId>com.blackducksoftware.integration</groupId>
242                         <artifactId>hub-maven-plugin</artifactId>
243                         <version>1.4.0</version>
244                         <inherited>false</inherited>
245                         <configuration>
246                             <hubProjectName>${project.name}</hubProjectName>
247                             <outputDirectory>${project.basedir}</outputDirectory>
248                         </configuration>
249                         <executions>
250                             <execution>
251                                 <id>create-bdio-file</id>
252                                 <phase>package</phase>
253                                 <goals>
254                                     <goal>createHubOutput</goal>
255                                 </goals>
256                             </execution>
257                         </executions>
258                     </plugin>
259                 </plugins>
260             </build>
261         </profile>
262
263         <!-- Profile to format skip validate or execute -->
264         <profile>
265             <id>format</id>
266             <properties>
267                 <format.skipValidate>true</format.skipValidate>
268                 <format.skipExecute>false</format.skipExecute>
269             </properties>
270         </profile>
271         <profile>
272             <id>dependency-list</id>
273             <build>
274                 <plugins>
275                     <plugin>
276                         <groupId>com.github.ferstl</groupId>
277                         <artifactId>depgraph-maven-plugin</artifactId>
278                         <executions>
279                             <execution>
280                                 <phase>validate</phase>
281                                 <inherited>false</inherited>
282                                 <goals>
283                                     <goal>aggregate</goal>
284                                 </goals>
285                             </execution>
286                         </executions>
287                     </plugin>
288                     <plugin>
289                         <groupId>org.codehaus.mojo</groupId>
290                         <artifactId>build-helper-maven-plugin</artifactId>
291                         <executions>
292                             <execution>
293                                 <id>attach-artifacts</id>
294                                 <phase>package</phase>
295                                 <inherited>false</inherited>
296                                 <goals>
297                                     <goal>attach-artifact</goal>
298                                 </goals>
299                                 <configuration>
300                                     <artifacts>
301                                         <artifact>
302                                             <file>${dependency-list.file}</file>
303                                             <type>txt</type>
304                                             <classifier>dependencies</classifier>
305                                         </artifact>
306                                     </artifacts>
307                                 </configuration>
308                             </execution>
309                         </executions>
310                     </plugin>
311                 </plugins>
312             </build>
313         </profile>
314     </profiles>
315 </project>