Skip to content

Commit e6301e0

Browse files
feat: marketplace app/manifest [CS-35325] ✨
Added, feat: marketplace app/manifest [CS-35325] ✨
1 parent b0e35d8 commit e6301e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2334
-2262
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,34 @@
1-
name: Publish to Docker
1+
name: Publish package to the Maven Central Repository and GitHub Packages
22
on:
3-
push:
4-
branches:
5-
- main
3+
release:
4+
types: [created]
65
jobs:
76
publish:
87
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
911
steps:
10-
- uses: actions/checkout@v2
11-
# Add your test steps here if needed...
12+
- uses: actions/checkout@v3
1213
- name: Set up Java for publishing to Maven Central Repository
13-
uses: docker/build-push-action@v1
14+
uses: actions/setup-java@v3
1415
with:
15-
java-version: 1.8
16+
java-version: '11'
17+
distribution: 'adopt'
1618
server-id: ossrh
1719
server-username: MAVEN_USERNAME
1820
server-password: MAVEN_PASSWORD
19-
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
20-
gpg-passphrase: MAVEN_GPG_PASSPHRASE
21-
- name: build artifact
22-
# run: mvn clean package
23-
# - name: Create release
24-
uses: ncipollo/release-action@v1
25-
with:
26-
allowUpdates: true
27-
artifacts: "${{ github.workspace }}/target/*.jar"
28-
token: ${{ secrets.GITHUB_TOKEN }}
29-
- name: Publish to the Maven Central Repository
30-
run: |
31-
mvn \
32-
--no-transfer-progress \
33-
--batch-mode \
34-
deploy
35-
env:
36-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
37-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
38-
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
39-
40-
21+
- name: Publish to the Maven Central Repository
22+
run: mvn --batch-mode deploy
23+
env:
24+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
25+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
26+
- name: Set up Java for publishing to GitHub Packages
27+
uses: actions/setup-java@v3
28+
with:
29+
java-version: '11'
30+
distribution: 'adopt'
31+
- name: Publish to GitHub Packages
32+
run: mvn --batch-mode deploy
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

cms.iml

Lines changed: 0 additions & 42 deletions
This file was deleted.

pom.xml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,17 @@
6565
<id>ossrh</id>
6666
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
6767
</snapshotRepository>
68+
<!--Publish to the maven repository-->
6869
<repository>
6970
<id>ossrh</id>
7071
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
7172
</repository>
73+
<!-- &lt;!&ndash;Publish to the GitHub repository&ndash;&gt;-->
74+
<!-- <repository>-->
75+
<!-- <id>github</id>-->
76+
<!-- <name>Github Packages</name>-->
77+
<!-- <url>https://maven.pkg.github.com/developshint/contentstack-management-java</url>-->
78+
<!-- </repository>-->
7279
</distributionManagement>
7380

7481
<properties>
@@ -81,16 +88,16 @@
8188
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
8289
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
8390
<dotenv-source.version>5.2.2</dotenv-source.version>
84-
<rxjava-source.version>3.1.5</rxjava-source.version>
91+
<rxjava-source.version>3.1.6</rxjava-source.version>
8592
<retrofit-source.version>2.9.0</retrofit-source.version>
8693
<converter-gson-version>2.9.0</converter-gson-version>
8794
<logging.version>4.10.0</logging.version>
8895
<jococo-plugin.version>0.8.5</jococo-plugin.version>
89-
<lombok-source.version>1.18.24</lombok-source.version>
90-
<junit-jupiter.version>5.9.0</junit-jupiter.version>
96+
<lombok-source.version>1.18.26</lombok-source.version>
97+
<junit-jupiter.version>5.9.2</junit-jupiter.version>
9198
<junit-jupiter-engine.version>5.8.0-M1</junit-jupiter-engine.version>
92-
<junit-vintage-engine.version>5.9.0</junit-vintage-engine.version>
93-
<gson.version>2.10</gson.version>
99+
<junit-vintage-engine.version>5.9.2</junit-vintage-engine.version>
100+
<gson.version>2.10.1</gson.version>
94101
<maven-site-plugin.version>3.3</maven-site-plugin.version>
95102
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
96103
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
@@ -131,7 +138,7 @@
131138
<dependency>
132139
<groupId>org.jetbrains</groupId>
133140
<artifactId>annotations</artifactId>
134-
<version>23.0.0</version>
141+
<version>24.0.1</version>
135142
<scope>provided</scope>
136143
</dependency>
137144
<dependency>

src/main/java/com/contentstack/cms/Contentstack.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private void setupLoginCredentials(Response<LoginDetails> loginResponse) throws
204204

205205
/**
206206
* The Log out of your account call is used to sign out the user of Contentstack account
207-
*
207+
* <p>
208208
* <b> Example </b>
209209
*
210210
* <pre>
@@ -224,7 +224,7 @@ Response<ResponseBody> logout() throws IOException {
224224

225225
/**
226226
* The Log out of your account using authtoken is used to sign out the user of Contentstack account
227-
*
227+
* <p>
228228
* <b> Example </b>
229229
*
230230
* <pre>
@@ -251,7 +251,7 @@ Response<ResponseBody> logoutWithAuthtoken(String authtoken) throws IOException
251251
/**
252252
* Organization is the top-level entity in the hierarchy of Contentstack, consisting of stacks and stack resources,
253253
* and users. Organization allows easy management of projects as well as users within the Organization.
254-
*
254+
* <p>
255255
* <b> Example </b>
256256
*
257257
* <pre>
@@ -271,7 +271,7 @@ public Organization organization() {
271271
/**
272272
* Organization is the top-level entity in the hierarchy of Contentstack, consisting of stacks and stack resources,
273273
* and users. Organization allows easy management of projects as well as users within the Organization.
274-
*
274+
* <p>
275275
* <b> Example </b>
276276
*
277277
* @param organizationUid

0 commit comments

Comments
 (0)