Skip to content

Commit 707a2a3

Browse files
✅ azure release
1 parent dc755b3 commit 707a2a3

File tree

4 files changed

+25
-12
lines changed

4 files changed

+25
-12
lines changed

pom.xml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.contentstack.sdk</groupId>
77
<artifactId>java</artifactId>
8-
<version>${sdk.version.release}</version>
8+
<version>1.9.0-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010
<name>contentstack-java</name>
1111
<description>Java SDK for Contentstack Content Delivery API</description>
1212
<url>https://github.com/contentstack/contentstack-java/</url>
1313

1414

1515
<properties>
16-
<!--update sdk version before every release push for SNAPSHOT/RELEASE-->
17-
<sdk.version.snapshot>1.8.1-SNAPSHOT</sdk.version.snapshot>
18-
<sdk.version.release>1.8.1</sdk.version.release>
16+
<sdk.version.snapshot>1.9.0-SNAPSHOT</sdk.version.snapshot>
17+
<sdk.version.release>1.9.0</sdk.version.release>
1918
<maven.compiler.target>1.8</maven.compiler.target>
2019
<maven.compiler.source>1.8</maven.compiler.source>
2120
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2221
<surefire-report-plugin.version>2.22.0</surefire-report-plugin.version>
2322
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
24-
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
23+
<maven-javadoc-plugin.version>3.3.2</maven-javadoc-plugin.version>
2524
<dotenv-source.version>5.2.2</dotenv-source.version>
2625
<rxjava-source.version>3.1.3</rxjava-source.version>
2726
<retrofit-source.version>2.9.0</retrofit-source.version>
@@ -39,7 +38,7 @@
3938
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
4039
<nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
4140
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
42-
<json-version>20210307</json-version>
41+
<json-version>20211205</json-version>
4342
<jacoco-maven-plugin-version>0.8.7</jacoco-maven-plugin-version>
4443
<maven-release-plugin-version>2.5.3</maven-release-plugin-version>
4544
<nexus-staging-maven-plugin-version>1.6.7</nexus-staging-maven-plugin-version>
@@ -283,7 +282,9 @@
283282
<configuration>
284283
<source>1.8</source>
285284
<target>1.8</target>
286-
<compilerArgument>-Xlint:all</compilerArgument>
285+
<compilerArgument>
286+
-Xlint:all,-serial,-processing
287+
</compilerArgument>
287288
<showWarnings>true</showWarnings>
288289
<showDeprecation>true</showDeprecation>
289290
</configuration>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public class Constants {
1515

1616
private static final Logger logger = Logger.getLogger(Constants.class.getSimpleName());
17-
protected static final String SDK_VERSION = "1.8.1";
17+
protected static final String SDK_VERSION = "1.9.0";
1818
protected static final String ENVIRONMENT = "environment";
1919
protected static final String CONTENT_TYPE_UID = "content_type_uid";
2020
protected static final String SYNCHRONISATION = "stacks/sync";

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,6 @@ public List<Asset> getAssets(String key) {
647647
}
648648

649649
/**
650-
* @param key
651-
*
652-
*
653-
* Get a group from entry.
654650
*
655651
* @param key field_uid as key. <br>
656652
* <br>

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,20 @@ public void onCompletion(ResponseType responseType, QueryResult queryresult, Err
7272
});
7373
Assertions.assertEquals("azure-na-cdn.contentstack.com", stack.config.host);
7474
}
75+
76+
@Test
77+
void testAzureRegionBehaviourEUStack() throws IllegalAccessException {
78+
Config config = new Config();
79+
Config.ContentstackRegion region = Config.ContentstackRegion.EU;
80+
config.setRegion(region);
81+
Stack stack = Contentstack.stack("fakeApiKey", "fakeDeliveryToken", "fakeEnvironment", config);
82+
Query query = stack.contentType("fakeCT").query();
83+
query.find(new QueryResultsCallBack() {
84+
@Override
85+
public void onCompletion(ResponseType responseType, QueryResult queryresult, Error error) {
86+
System.out.println("So something here...");
87+
}
88+
});
89+
Assertions.assertEquals("eu-cdn.contentstack.com", stack.config.host);
90+
}
7591
}

0 commit comments

Comments
 (0)