|
6 | 6 | <modelVersion>4.0.0</modelVersion>
|
7 | 7 | <groupId>com.contentstack.sdk</groupId>
|
8 | 8 | <artifactId>java</artifactId>
|
9 |
| - <version>1.8.0</version> |
| 9 | + <version>1.8.0-SNAPSHOT</version> |
10 | 10 | <packaging>jar</packaging>
|
11 | 11 | <name>contentstack-java</name>
|
12 | 12 | <description>Java SDK for Contentstack Content Delivery API</description>
|
|
15 | 15 |
|
16 | 16 | <properties>
|
17 | 17 | <!--update sdk version before every release push for SNAPSHOT/RELEASE-->
|
18 |
| - <sdk.version.snapshot>v1.8.0-SNAPSHOT</sdk.version.snapshot> |
| 18 | + <sdk.version.snapshot>v1.8.0</sdk.version.snapshot> |
19 | 19 | <sdk.version.release>v1.8.0</sdk.version.release>
|
20 | 20 | <maven.compiler.target>1.8</maven.compiler.target>
|
21 | 21 | <maven.compiler.source>1.8</maven.compiler.source>
|
|
41 | 41 | <nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
|
42 | 42 | <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
|
43 | 43 | <json-version>20210307</json-version>
|
| 44 | + <jacoco-maven-plugin-version>0.8.7</jacoco-maven-plugin-version> |
| 45 | + <maven-release-plugin-version>2.5.3</maven-release-plugin-version> |
| 46 | + <nexus-staging-maven-plugin-version>1.6.7</nexus-staging-maven-plugin-version> |
44 | 47 | <contentstack-utils-version>1.1.0</contentstack-utils-version>
|
45 | 48 | </properties>
|
46 | 49 |
|
|
143 | 146 | <artifactId>lombok</artifactId>
|
144 | 147 | <version>${lombok-source.version}</version>
|
145 | 148 | </dependency>
|
| 149 | + <!--JUnit 5 requires Java 8, you should make sure you have it ready in your environment.--> |
146 | 150 | <dependency>
|
147 | 151 | <groupId>org.junit.jupiter</groupId>
|
148 | 152 | <artifactId>junit-jupiter</artifactId>
|
|
174 | 178 | # time-consuming stuff
|
175 | 179 | mvn surefire-report:report site -DgenerateReports=false
|
176 | 180 | -->
|
177 |
| - <plugin> |
178 |
| - <groupId>org.apache.maven.plugins</groupId> |
179 |
| - <artifactId>maven-surefire-report-plugin</artifactId> |
180 |
| - <version>${surefire-report-plugin.version}</version> |
181 |
| - <executions> |
182 |
| - <execution> |
183 |
| - <phase>test</phase> |
184 |
| - <goals> |
185 |
| - <goal>report-only</goal> |
186 |
| - </goals> |
187 |
| - </execution> |
188 |
| - </executions> |
189 |
| - </plugin> |
| 181 | + <!-- <plugin>--> |
| 182 | + <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| 183 | + <!-- <artifactId>maven-surefire-report-plugin</artifactId>--> |
| 184 | + <!-- <version>${surefire-report-plugin.version}</version>--> |
| 185 | + <!-- <executions>--> |
| 186 | + <!-- <execution>--> |
| 187 | + <!-- <phase>test</phase>--> |
| 188 | + <!-- <goals>--> |
| 189 | + <!-- <goal>report-only</goal>--> |
| 190 | + <!-- </goals>--> |
| 191 | + <!-- </execution>--> |
| 192 | + <!-- </executions>--> |
| 193 | + <!-- </plugin>--> |
| 194 | + |
190 | 195 | <plugin>
|
191 | 196 | <groupId>org.apache.maven.plugins</groupId>
|
192 | 197 | <artifactId>maven-source-plugin</artifactId>
|
|
200 | 205 | </execution>
|
201 | 206 | </executions>
|
202 | 207 | </plugin>
|
| 208 | + |
203 | 209 | <plugin>
|
204 | 210 | <groupId>org.apache.maven.plugins</groupId>
|
205 | 211 | <artifactId>maven-javadoc-plugin</artifactId>
|
|
224 | 230 | </execution>
|
225 | 231 | </executions>
|
226 | 232 | </plugin>
|
| 233 | + |
227 | 234 | <plugin>
|
228 | 235 | <groupId>org.apache.maven.plugins</groupId>
|
229 | 236 | <artifactId>maven-site-plugin</artifactId>
|
|
272 | 279 | <showDeprecation>true</showDeprecation>
|
273 | 280 | </configuration>
|
274 | 281 | </plugin>
|
| 282 | + |
275 | 283 | <plugin>
|
276 | 284 | <groupId>org.sonatype.plugins</groupId>
|
277 | 285 | <artifactId>nexus-staging-maven-plugin</artifactId>
|
278 |
| - <version>1.6.7</version> |
| 286 | + <version>${nexus-staging-maven-plugin-version}</version> |
279 | 287 | <extensions>true</extensions>
|
280 | 288 | <configuration>
|
281 | 289 | <serverId>ossrh</serverId>
|
|
290 | 298 | <plugin>
|
291 | 299 | <groupId>org.apache.maven.plugins</groupId>
|
292 | 300 | <artifactId>maven-release-plugin</artifactId>
|
293 |
| - <version>2.5.3</version> |
| 301 | + <version>${maven-release-plugin-version}</version> |
294 | 302 | <configuration>
|
295 | 303 | <autoVersionSubmodules>true</autoVersionSubmodules>
|
296 | 304 | <useReleaseProfile>false</useReleaseProfile>
|
297 | 305 | <releaseProfiles>release</releaseProfiles>
|
298 | 306 | <goals>deploy</goals>
|
299 | 307 | </configuration>
|
300 | 308 | </plugin>
|
| 309 | + |
| 310 | + <!-- <plugin>--> |
| 311 | + <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| 312 | + <!-- <artifactId>maven-surefire-plugin</artifactId>--> |
| 313 | + <!-- <version>2.21.0</version>--> |
| 314 | + <!-- <dependencies>--> |
| 315 | + <!-- <dependency>--> |
| 316 | + <!-- <groupId>org.junit.platform</groupId>--> |
| 317 | + <!-- <artifactId>junit-platform-surefire-provider</artifactId>--> |
| 318 | + <!-- <version>1.2.0-M1</version>--> |
| 319 | + <!-- </dependency>--> |
| 320 | + <!-- <dependency>--> |
| 321 | + <!-- <groupId>org.junit.jupiter</groupId>--> |
| 322 | + <!-- <artifactId>junit-jupiter-engine</artifactId>--> |
| 323 | + <!-- <version>5.2.0-M1</version>--> |
| 324 | + <!-- </dependency>--> |
| 325 | + <!-- </dependencies>--> |
| 326 | + <!-- </plugin>--> |
| 327 | + |
301 | 328 | <plugin>
|
302 | 329 | <groupId>org.jacoco</groupId>
|
303 | 330 | <artifactId>jacoco-maven-plugin</artifactId>
|
304 |
| - <version>0.8.5</version> |
| 331 | + <version>${jacoco-maven-plugin-version}</version> |
305 | 332 | <executions>
|
306 | 333 | <execution>
|
| 334 | + <id>prepare-agent</id> |
307 | 335 | <goals>
|
308 | 336 | <goal>prepare-agent</goal>
|
309 | 337 | </goals>
|
|
315 | 343 | <goal>report</goal>
|
316 | 344 | </goals>
|
317 | 345 | </execution>
|
| 346 | + <execution> |
| 347 | + <id>post-unit-test</id> |
| 348 | + <phase>test</phase> |
| 349 | + <goals> |
| 350 | + <goal>report</goal> |
| 351 | + </goals> |
| 352 | + <configuration> |
| 353 | + <dataFile>target/jacoco.exec</dataFile> |
| 354 | + <outputDirectory>target/jacoco-ut</outputDirectory> |
| 355 | + </configuration> |
| 356 | + </execution> |
318 | 357 | </executions>
|
| 358 | + <configuration> |
| 359 | +<!-- <systemPropertyVariables>--> |
| 360 | +<!-- <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>--> |
| 361 | +<!-- </systemPropertyVariables>--> |
| 362 | + <excludes> |
| 363 | + <exclude>src/main/java/com/contentstack/sdk/Group.class</exclude> |
| 364 | + <exclude>src/main/java/com/contentstack/sdk/FetchAssetsCallback.class</exclude> |
| 365 | + <exclude>src/main/java/com/contentstack/sdk/SingleQueryResultCallback.class</exclude> |
| 366 | + <exclude>src/main/java/com/contentstack/sdk/ContentTypesCallback.class</exclude> |
| 367 | + <exclude>src/main/java/com/contentstack/sdk/QueryResultsCallBack.class</exclude> |
| 368 | + <exclude>src/main/java/com/contentstack/sdk/FetchResultCallback.class</exclude> |
| 369 | + <exclude>src/main/java/com/contentstack/sdk/EntryResultCallBack.class</exclude> |
| 370 | + <exclude>src/main/java/com/contentstack/sdk/FetchResultCallback.class</exclude> |
| 371 | + </excludes> |
| 372 | + </configuration> |
| 373 | + </plugin> |
| 374 | + <plugin> |
| 375 | + <groupId>org.apache.maven.plugins</groupId> |
| 376 | + <artifactId>maven-jxr-plugin</artifactId> |
| 377 | + <version>2.3</version> |
319 | 378 | </plugin>
|
320 |
| - |
321 | 379 | </plugins>
|
322 | 380 | </build>
|
323 | 381 |
|
|
0 commit comments