Skip to content

Commit 1feb22c

Browse files
readme updated
1 parent 552754a commit 1feb22c

File tree

1 file changed

+77
-19
lines changed

1 file changed

+77
-19
lines changed

pom.xml

Lines changed: 77 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>com.contentstack.sdk</groupId>
88
<artifactId>java</artifactId>
9-
<version>1.8.0</version>
9+
<version>1.8.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111
<name>contentstack-java</name>
1212
<description>Java SDK for Contentstack Content Delivery API</description>
@@ -15,7 +15,7 @@
1515

1616
<properties>
1717
<!--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>
1919
<sdk.version.release>v1.8.0</sdk.version.release>
2020
<maven.compiler.target>1.8</maven.compiler.target>
2121
<maven.compiler.source>1.8</maven.compiler.source>
@@ -41,6 +41,9 @@
4141
<nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
4242
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
4343
<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>
4447
<contentstack-utils-version>1.1.0</contentstack-utils-version>
4548
</properties>
4649

@@ -143,6 +146,7 @@
143146
<artifactId>lombok</artifactId>
144147
<version>${lombok-source.version}</version>
145148
</dependency>
149+
<!--JUnit 5 requires Java 8, you should make sure you have it ready in your environment.-->
146150
<dependency>
147151
<groupId>org.junit.jupiter</groupId>
148152
<artifactId>junit-jupiter</artifactId>
@@ -174,19 +178,20 @@
174178
# time-consuming stuff
175179
mvn surefire-report:report site -DgenerateReports=false
176180
-->
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+
190195
<plugin>
191196
<groupId>org.apache.maven.plugins</groupId>
192197
<artifactId>maven-source-plugin</artifactId>
@@ -200,6 +205,7 @@
200205
</execution>
201206
</executions>
202207
</plugin>
208+
203209
<plugin>
204210
<groupId>org.apache.maven.plugins</groupId>
205211
<artifactId>maven-javadoc-plugin</artifactId>
@@ -224,6 +230,7 @@
224230
</execution>
225231
</executions>
226232
</plugin>
233+
227234
<plugin>
228235
<groupId>org.apache.maven.plugins</groupId>
229236
<artifactId>maven-site-plugin</artifactId>
@@ -272,10 +279,11 @@
272279
<showDeprecation>true</showDeprecation>
273280
</configuration>
274281
</plugin>
282+
275283
<plugin>
276284
<groupId>org.sonatype.plugins</groupId>
277285
<artifactId>nexus-staging-maven-plugin</artifactId>
278-
<version>1.6.7</version>
286+
<version>${nexus-staging-maven-plugin-version}</version>
279287
<extensions>true</extensions>
280288
<configuration>
281289
<serverId>ossrh</serverId>
@@ -290,20 +298,40 @@
290298
<plugin>
291299
<groupId>org.apache.maven.plugins</groupId>
292300
<artifactId>maven-release-plugin</artifactId>
293-
<version>2.5.3</version>
301+
<version>${maven-release-plugin-version}</version>
294302
<configuration>
295303
<autoVersionSubmodules>true</autoVersionSubmodules>
296304
<useReleaseProfile>false</useReleaseProfile>
297305
<releaseProfiles>release</releaseProfiles>
298306
<goals>deploy</goals>
299307
</configuration>
300308
</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+
301328
<plugin>
302329
<groupId>org.jacoco</groupId>
303330
<artifactId>jacoco-maven-plugin</artifactId>
304-
<version>0.8.5</version>
331+
<version>${jacoco-maven-plugin-version}</version>
305332
<executions>
306333
<execution>
334+
<id>prepare-agent</id>
307335
<goals>
308336
<goal>prepare-agent</goal>
309337
</goals>
@@ -315,9 +343,39 @@
315343
<goal>report</goal>
316344
</goals>
317345
</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>
318357
</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>
319378
</plugin>
320-
321379
</plugins>
322380
</build>
323381

0 commit comments

Comments
 (0)