Upversion for global jjb transition
[aai/rest-client.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7     Copyright © 2017-2018 Amdocs
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13     http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" 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.onap.oparent</groupId>
27         <artifactId>oparent</artifactId>
28         <version>1.2.1</version>
29     </parent>
30
31     <groupId>org.onap.aai</groupId>
32     <artifactId>rest-client</artifactId>
33     <version>1.5.0-SNAPSHOT</version>
34     <name>aai-rest-client</name>
35
36     <properties>
37         <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
38         <!-- Sonar Properties -->
39         <sonar.language>java</sonar.language>
40         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
41         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
42         <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
43         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
44         <sonar.projectVersion>${project.version}</sonar.projectVersion>
45         <jacoco.line.coverage.limit>0.84</jacoco.line.coverage.limit>
46     </properties>
47
48     <dependencies>
49
50         <dependency>
51             <groupId>org.glassfish.jersey.core</groupId>
52             <artifactId>jersey-client</artifactId>
53             <version>2.27</version>
54         </dependency>
55
56         <dependency>
57             <groupId>org.onap.aai.logging-service</groupId>
58             <artifactId>common-logging</artifactId>
59             <version>1.5.0</version>
60         </dependency>
61
62         <dependency>
63             <groupId>org.mockito</groupId>
64             <artifactId>mockito-all</artifactId>
65             <version>1.10.19</version>
66             <scope>test</scope>
67         </dependency>
68
69         <dependency>
70             <groupId>org.powermock</groupId>
71             <artifactId>powermock-module-junit4</artifactId>
72             <version>1.6.2</version>
73             <scope>test</scope>
74         </dependency>
75
76         <dependency>
77             <groupId>org.powermock</groupId>
78             <artifactId>powermock-api-mockito</artifactId>
79             <version>1.6.2</version>
80             <scope>test</scope>
81         </dependency>
82
83         <dependency>
84             <groupId>org.powermock</groupId>
85             <artifactId>powermock-module-javaagent</artifactId>
86             <version>1.6.2</version>
87             <scope>test</scope>
88         </dependency>
89
90         <dependency>
91             <groupId>org.powermock</groupId>
92             <artifactId>powermock-module-junit4-rule-agent</artifactId>
93             <version>1.6.2</version>
94             <scope>test</scope>
95         </dependency>
96
97     </dependencies>
98
99     <build>
100         <pluginManagement>
101             <plugins>
102                 <plugin>
103                     <groupId>org.apache.maven.plugins</groupId>
104                     <artifactId>maven-compiler-plugin</artifactId>
105                     <configuration>
106                         <source>1.8</source>
107                         <target>1.8</target>
108                     </configuration>
109                 </plugin>
110                 <plugin>
111                     <artifactId>maven-release-plugin</artifactId>
112                     <version>2.4.2</version>
113                     <dependencies>
114                         <dependency>
115                             <groupId>org.apache.maven.scm</groupId>
116                             <artifactId>maven-scm-provider-gitexe</artifactId>
117                             <version>1.8.1</version>
118                         </dependency>
119                     </dependencies>
120                 </plugin>
121
122                 <!-- Checkstyle plugin - used to report on compliance with -->
123                 <!-- the Google style guide. -->
124                 <plugin>
125                     <groupId>org.apache.maven.plugins</groupId>
126                     <artifactId>maven-site-plugin</artifactId>
127                     <version>3.6</version>
128                 </plugin>
129             </plugins>
130         </pluginManagement>
131         <plugins>
132             <plugin>
133                 <groupId>com.mycila</groupId>
134                 <artifactId>license-maven-plugin</artifactId>
135                 <version>3.0</version>
136                 <configuration>
137                     <header>License.txt</header>
138                     <includes>
139                         <include>src/main/java/**</include>
140                         <include>src/test/java/**</include>
141                         <include>pom.xml</include>
142                     </includes>
143                     <skipExistingHeaders>true</skipExistingHeaders>
144                 </configuration>
145                 <executions>
146                     <execution>
147                         <goals>
148                             <!-- Set goal from "check" to "format" to auto update license headers -->
149                             <goal>check</goal>
150                         </goals>
151                         <phase>validate</phase>
152                     </execution>
153                 </executions>
154             </plugin>
155             <plugin>
156                 <groupId>org.sonatype.plugins</groupId>
157                 <artifactId>nexus-staging-maven-plugin</artifactId>
158                 <version>1.6.7</version>
159                 <extensions>true</extensions>
160                 <configuration>
161                     <nexusUrl>${onap.nexus.url}</nexusUrl>
162                     <stagingProfileId>176c31dfe190a</stagingProfileId>
163                     <serverId>ecomp-staging</serverId>
164                 </configuration>
165             </plugin>
166
167             <plugin>
168                 <groupId>org.codehaus.mojo</groupId>
169                 <artifactId>sonar-maven-plugin</artifactId>
170                 <version>3.2</version>
171             </plugin>
172             <plugin>
173                 <groupId>org.jacoco</groupId>
174                 <artifactId>jacoco-maven-plugin</artifactId>
175                 <version>0.7.7.201606060606</version>
176                 <configuration>
177                      <dumpOnExit>true</dumpOnExit>
178                 </configuration>
179                 <executions>
180                     <execution>
181                         <id>jacoco-initialize-unit-tests</id>
182                         <goals>
183                             <goal>prepare-agent</goal>
184                         </goals>
185                         <configuration>
186                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
187                             <!-- <append>true</append> -->
188                         </configuration>
189                     </execution>
190                     <execution>
191                         <id>default-check</id>
192                         <goals>
193                             <goal>check</goal>
194                         </goals>
195                         <configuration>
196                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
197                             <rules>
198                                 <!--  implementation is needed only for Maven 2  -->
199                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
200                                     <element>BUNDLE</element>
201                                     <limits>
202                                         <limit implementation="org.jacoco.report.check.Limit">
203                                             <counter>LINE</counter>
204                                             <value>COVEREDRATIO</value>
205                                             <minimum>${jacoco.line.coverage.limit}</minimum>
206                                         </limit>
207                                     </limits>
208                                 </rule>
209                             </rules>
210                         </configuration>
211                     </execution>
212                 </executions>
213             </plugin>
214
215         </plugins>
216     </build>
217
218     <reporting>
219         <plugins>
220             <plugin>
221                 <groupId>org.apache.maven.plugins</groupId>
222                 <artifactId>maven-checkstyle-plugin</artifactId>
223                 <version>2.17</version>
224                 <reportSets>
225                     <reportSet>
226                         <reports>
227                             <report>checkstyle</report>
228                         </reports>
229                     </reportSet>
230                 </reportSets>
231             </plugin>
232         </plugins>
233     </reporting>
234
235 </project>