Skip to content

Commit 88f5d76

Browse files
test release
1 parent 86b5e3a commit 88f5d76

File tree

3 files changed

+136
-23
lines changed

3 files changed

+136
-23
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ jobs:
3434
id: jacoco
3535
uses: madrapps/jacoco-report@v1.3
3636
with:
37-
paths: ${{ github.workspace }}/build/reports/jacoco/testCoverage/testCoverage.xml
37+
paths: ${{ github.workspace }}/target/site/surefire-report.html
3838
token: ${{ secrets.GITHUB_TOKEN }}
3939
min-coverage-overall: 40
40-
min-coverage-changed-files: 60
41-
- name: Build with Maven
42-
run: mvn -B package -Pcoverage
40+
min-coverage-changed-files: 60

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,5 @@ src/main/resources/
271271
/.apt_generated_tests/
272272
.dccache
273273
.vscode/settings.json
274+
.vscode/
275+
/.vscode/

pom.xml

Lines changed: 132 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
45
<modelVersion>4.0.0</modelVersion>
56
<groupId>com.contentstack.sdk</groupId>
67
<artifactId>cms</artifactId>
78
<packaging>jar</packaging>
89
<name>contentstack-management-java</name>
9-
<version>1.1.2-SNAPSHOT</version>
10+
<version>1.0.0-SNAPSHOT</version>
1011
<description>Contentstack Java Management SDK for Content Management API, Contentstack is a headless CMS with an
1112
API-first approach
1213
</description>
@@ -45,19 +46,18 @@
4546
</organization>
4647

4748
<developers>
48-
<developer>
49-
<name>shaileshmishra</name>
50-
<email>shailesh.mishra@contentstack.com</email>
51-
<organization>contentstack</organization>
52-
<organizationUrl>https://www.contentstack.com/</organizationUrl>
53-
</developer>
54-
5549
<developer>
5650
<name>contentstack</name>
5751
<email>mobile@contentstack.com</email>
5852
<organization>Contentstack</organization>
5953
<organizationUrl>https://www.contentstack.com/</organizationUrl>
6054
</developer>
55+
<developer>
56+
<name>ishaileshmishra</name>
57+
<email>mshaileshr@gmail.com</email>
58+
<organization>contentstack</organization>
59+
<organizationUrl>https://www.contentstack.com/</organizationUrl>
60+
</developer>
6161
</developers>
6262

6363
<distributionManagement>
@@ -69,11 +69,6 @@
6969
<id>ossrh</id>
7070
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
7171
</repository>
72-
<!-- <repository>
73-
<id>github</id>
74-
<name>GitHub Packages</name>
75-
<url>https://maven.pkg.github.com/contentstack/contentstack-management-java</url>
76-
</repository> -->
7772
</distributionManagement>
7873

7974
<properties>
@@ -91,7 +86,7 @@
9186
<converter-gson-version>2.9.0</converter-gson-version>
9287
<logging.version>4.10.0</logging.version>
9388
<jococo-plugin.version>0.8.5</jococo-plugin.version>
94-
<lombok-source.version>1.18.26</lombok-source.version>
89+
<lombok-source.version>1.18.28</lombok-source.version>
9590
<junit-jupiter.version>5.9.2</junit-jupiter.version>
9691
<junit-jupiter-engine.version>5.8.0-M1</junit-jupiter-engine.version>
9792
<junit-vintage-engine.version>5.9.2</junit-vintage-engine.version>
@@ -172,9 +167,125 @@
172167
</dependency>
173168
</dependencies>
174169

170+
171+
<profiles>
172+
<profile>
173+
<id>ossrhDeploy</id>
174+
<distributionManagement>
175+
<repository>
176+
<id>ossrh</id>
177+
<name>Central Repository OSSRH</name>
178+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
179+
</repository>
180+
<snapshotRepository>
181+
<id>ossrh</id>
182+
<name>Central Repository OSSRH</name>
183+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
184+
</snapshotRepository>
185+
</distributionManagement>
186+
<build>
187+
<plugins>
188+
<plugin>
189+
<groupId>org.sonatype.plugins</groupId>
190+
<artifactId>nexus-staging-maven-plugin</artifactId>
191+
<version>1.6.13</version>
192+
<extensions>true</extensions>
193+
<configuration>
194+
<serverId>ossrh</serverId>
195+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
196+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
197+
</configuration>
198+
</plugin>
199+
<plugin>
200+
<groupId>org.apache.maven.plugins</groupId>
201+
<artifactId>maven-gpg-plugin</artifactId>
202+
<version>3.1.0</version>
203+
<executions>
204+
<execution>
205+
<id>sign-artifacts</id>
206+
<phase>verify</phase>
207+
<goals>
208+
<goal>sign</goal>
209+
</goals>
210+
<configuration>
211+
<gpgArguments>
212+
<arg>--pinentry-mode</arg>
213+
<arg>loopback</arg>
214+
</gpgArguments>
215+
</configuration>
216+
</execution>
217+
</executions>
218+
</plugin>
219+
</plugins>
220+
</build>
221+
</profile>
222+
<profile>
223+
<id>githubDeploy</id>
224+
<distributionManagement>
225+
<repository>
226+
<id>github</id>
227+
<name>GitHub cicirello Apache Maven Packages</name>
228+
<url>https://maven.pkg.github.com/contentstack/contentstack-management-java</url>
229+
</repository>
230+
</distributionManagement>
231+
</profile>
232+
<profile>
233+
<id>coverage</id>
234+
<build>
235+
<plugins>
236+
<plugin>
237+
<groupId>org.jacoco</groupId>
238+
<artifactId>jacoco-maven-plugin</artifactId>
239+
<version>0.8.10</version>
240+
<executions>
241+
<execution>
242+
<goals>
243+
<goal>prepare-agent</goal>
244+
</goals>
245+
</execution>
246+
<execution>
247+
<id>generate-code-coverage-report</id>
248+
<phase>test</phase>
249+
<goals>
250+
<goal>report</goal>
251+
</goals>
252+
</execution>
253+
</executions>
254+
</plugin>
255+
</plugins>
256+
</build>
257+
</profile>
258+
<profile>
259+
<id>refactor</id>
260+
<build>
261+
<plugins>
262+
<plugin>
263+
<groupId>org.hjug.refactorfirst.plugin</groupId>
264+
<artifactId>refactor-first-maven-plugin</artifactId>
265+
<version>0.3.0</version>
266+
<configuration>
267+
<showDetails>true</showDetails>
268+
</configuration>
269+
<executions>
270+
<execution>
271+
<id>refactor-first</id>
272+
<phase>test</phase>
273+
<goals>
274+
<goal>report</goal>
275+
</goals>
276+
</execution>
277+
</executions>
278+
</plugin>
279+
</plugins>
280+
</build>
281+
</profile>
282+
</profiles>
283+
284+
175285
<build>
176286
<plugins>
177-
<!--mvn clean install -U -Dmaven.test.failure.ignore=true-->
287+
<!--mvn
288+
clean install -U -Dmaven.test.failure.ignore=true-->
178289
<plugin>
179290
<groupId>org.apache.maven.plugins</groupId>
180291
<artifactId>maven-surefire-plugin</artifactId>
@@ -217,7 +328,9 @@
217328
</executions>
218329
</plugin>
219330

220-
<!-- -overview "/Users/shaileshmishra/Documents/Workspace/contentstack/java/contentstack-management-java/src/main/overview.html" -bottom "<b>Copyright © 2012-2022 Contentstack </b><sup>TM</sup>"-->
331+
<!-- -overview
332+
"/Users/shaileshmishra/Documents/Workspace/contentstack/java/contentstack-management-java/src/main/overview.html"
333+
-bottom "<b>Copyright © 2012-2022 Contentstack </b><sup>TM</sup>"-->
221334
<plugin>
222335
<groupId>org.apache.maven.plugins</groupId>
223336
<artifactId>maven-javadoc-plugin</artifactId>
@@ -334,7 +447,7 @@
334447
</goals>
335448
</pluginExecutionFilter>
336449
<action>
337-
<ignore/>
450+
<ignore />
338451
</action>
339452
</pluginExecution>
340453
</pluginExecutions>

0 commit comments

Comments
 (0)