Skip to content

Commit 4bad2bb

Browse files
Merge pull request #13 from contentstack/next
DX | 11-06-2024 | Release
2 parents 5e60f3a + e97c53d commit 4bad2bb

File tree

8 files changed

+36
-11
lines changed

8 files changed

+36
-11
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012 - 2023 Contentstack
3+
Copyright (c) 2012 - 2024 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ AppRequest appRequest = marketplace.request();
8686

8787
The MIT License (MIT)
8888

89-
Copyright © 2012-2023 [Contentstack](https://www.contentstack.com/). All Rights Reserved
89+
Copyright © 2012-2024 [Contentstack](https://www.contentstack.com/). All Rights Reserved
9090

9191
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
9292

changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
3+
A brief description of what changes project contains
4+
5+
#### v1.1.0
6+
7+
- added GCP_NA region support
8+
9+
## Introducing Release Of Java Marketplace SDK
10+
11+
#### v1.0.0
12+
13+
- Initial release for Marketplace SDK

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.contentstack.sdk</groupId>
77
<artifactId>marketplace</artifactId>
8-
<version>1.0.0</version>
8+
<version>1.0.1</version>
99
<description>Contentstack Java Management SDK for Content Management API</description>
1010
<url>https://github.com/contentstack/contentstack-management-java/</url>
1111

1212
<properties>
13-
<sdk.version>1.0.0</sdk.version>
13+
<sdk.version>1.1.0</sdk.version>
1414
<maven.compiler.target>9</maven.compiler.target>
1515
<maven.compiler.source>9</maven.compiler.source>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -19,11 +19,11 @@
1919
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
2020
<dotenv-source.version>5.2.2</dotenv-source.version>
2121
<rxjava-source.version>3.1.6</rxjava-source.version>
22-
<retrofit-source.version>2.9.0</retrofit-source.version>
23-
<converter-gson-version>2.9.0</converter-gson-version>
22+
<retrofit-source.version>2.10.0</retrofit-source.version>
23+
<converter-gson-version>2.10.0</converter-gson-version>
2424
<logging.version>4.10.0</logging.version>
2525
<jococo-plugin.version>0.8.7</jococo-plugin.version>
26-
<lombok-source.version>1.18.30</lombok-source.version>
26+
<lombok-source.version>1.18.32</lombok-source.version>
2727
<junit-jupiter.version>5.10.0</junit-jupiter.version>
2828
<junit-jupiter-engine.version>5.8.0-M1</junit-jupiter-engine.version>
2929
<junit-vintage-engine.version>5.10.0</junit-vintage-engine.version>
@@ -117,7 +117,7 @@
117117
<dependency>
118118
<groupId>org.jetbrains</groupId>
119119
<artifactId>annotations</artifactId>
120-
<version>24.0.1</version>
120+
<version>24.1.0</version>
121121
<scope>provided</scope>
122122
</dependency>
123123
<dependency>
@@ -161,7 +161,7 @@
161161
<artifactId>maven-surefire-plugin</artifactId>
162162
<version>3.0.0-M5</version>
163163
<configuration>
164-
<skipTests>true</skipTests>
164+
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
165165
<testFailureIgnore>true</testFailureIgnore>
166166
</configuration>
167167
</plugin>

src/main/java/com/contentstack/sdk/Region.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ public enum Region {
2525
* Azure na region.
2626
*/
2727
AZURE_NA,
28+
/**
29+
* Gcp na region.
30+
*/
31+
GCP_NA,
2832
}

src/test/java/com/contentstack/sdk/TestClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ public static Marketplace getMarketplaceAzureEu() {
4747
.build();
4848
}
4949

50+
public static Marketplace getMarketplaceGcpNa() {
51+
return new Marketplace
52+
.Builder(TestClient.ORGANIZATION_UID)
53+
.host(HOST)
54+
.region(Region.GCP_NA)
55+
.build();
56+
}
57+
5058

5159
public static Marketplace getMarketplaceWithLogin() {
5260
return new Marketplace

src/test/java/com/contentstack/sdk/marketplace/installations/location/LocationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void testParamsAndHeaders() {
6060
Assertions.assertEquals(5, request.headers().size());
6161
Assertions.assertEquals("api.contentstack.io", request.url().host());
6262
Assertions.assertNull(request.body());
63-
Assertions.assertEquals("https://api.contentstack.io/installations/orgId999999999/locations/configuration?param1=value1", request.url().toString());
63+
Assertions.assertEquals("https://api.contentstack.io/installations/"+ ORG_UID +"/locations/configuration?param1=value1", request.url().toString());
6464
}
6565

6666

src/test/java/com/contentstack/sdk/marketplace/installations/webhook/WebhookTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void testParamsAndHeaders() {
111111
Assertions.assertEquals(5, request.headers().size());
112112
Assertions.assertEquals("api.contentstack.io", request.url().host());
113113
Assertions.assertNull(request.body());
114-
Assertions.assertEquals("https://api.contentstack.io/installations/installation_id/webhooks/orgId999999999/executions?limit=10&skip=5&sort=asc&order=order", request.url().toString());
114+
Assertions.assertEquals("https://api.contentstack.io/installations/installation_id/webhooks/" + WEBHOOK_ID + "/executions?limit=10&skip=5&sort=asc&order=order", request.url().toString());
115115
}
116116

117117

0 commit comments

Comments
 (0)