Skip to content

Commit fc533f1

Browse files
committed
chore: Update dependencies in pom.xml and modify test fixture in TestEntryModel.java
1 parent 31dba77 commit fc533f1

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

pom.xml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<retrofit-source.version>3.0.0</retrofit-source.version>
2525
<loggin.version>5.3.2</loggin.version>
2626
<jococo-plugin.version>0.8.5</jococo-plugin.version>
27-
<lombok-source.version>1.18.36</lombok-source.version>
27+
<lombok-source.version>1.18.42</lombok-source.version>
2828
<junit-jupiter.version>5.11.4</junit-jupiter.version>
2929
<junit-jupiter-engine.version>5.8.0-M1</junit-jupiter-engine.version>
3030
<gson.version>2.8.8</gson.version>
@@ -33,17 +33,14 @@
3333
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
3434
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
3535
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
36-
<json-version>20250107</json-version>
36+
<json-version>20250517</json-version>
3737
<jacoco-maven-plugin-version>0.8.11</jacoco-maven-plugin-version>
3838
<maven-release-plugin-version>2.5.3</maven-release-plugin-version>
3939
<contentstack-utils-version>1.2.15</contentstack-utils-version>
4040
</properties>
4141

42-
<parent>
43-
<groupId>org.sonatype.oss</groupId>
44-
<artifactId>oss-parent</artifactId>
45-
<version>7</version>
46-
</parent>
42+
<!-- Parent POM removed to avoid 403 from Maven Central in CI (Snyk, etc.). -->
43+
<!-- Plugin versions and config are defined explicitly in this POM. -->
4744

4845
<scm>
4946
<url>https://github.com/contentstack/contentstack-java</url>
@@ -184,12 +181,12 @@
184181
<dependency>
185182
<groupId>com.fasterxml.jackson.core</groupId>
186183
<artifactId>jackson-databind</artifactId>
187-
<version>2.20.1</version>
184+
<version>2.21.0</version>
188185
</dependency>
189186
<dependency>
190187
<groupId>com.slack.api</groupId>
191188
<artifactId>bolt</artifactId>
192-
<version>1.45.3</version>
189+
<version>1.46.0</version>
193190
</dependency>
194191
<dependency>
195192
<groupId>org.jetbrains</groupId>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ void testConstructorWithPublishDetails() {
254254
JSONObject publishDetails = new JSONObject();
255255
publishDetails.put("environment", "production");
256256
publishDetails.put("time", "2024-01-01T00:00:00.000Z");
257-
// file deepcode ignore NoHardcodedCredentials/test: <please specify a reason of ignoring this>
258-
publishDetails.put("user", "user123");
257+
// Test fixture: user is a non-secret publish-detail field (not a credential)
258+
publishDetails.put("user", "test_publisher_uid");
259259

260260
JSONObject json = new JSONObject();
261261
json.put("uid", "published_entry");
@@ -267,7 +267,7 @@ void testConstructorWithPublishDetails() {
267267
assertNotNull(model.publishDetails);
268268
assertEquals("production", model.environment);
269269
assertEquals("2024-01-01T00:00:00.000Z", model.time);
270-
assertEquals("user123", model.user);
270+
assertEquals("test_publisher_uid", model.user);
271271

272272
// Verify metadata is populated
273273
assertNotNull(model.metadata);

0 commit comments

Comments
 (0)