You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2024/12/19 12:15:33 UTC
(sling-org-apache-sling-models-jacksonexporter) branch master updated: SLING-12213 update dependencies (#11)
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-jacksonexporter.git
The following commit(s) were added to refs/heads/master by this push:
new cd71297 SLING-12213 update dependencies (#11)
cd71297 is described below
commit cd712972fe83f7727c43bfad4438343dcfe9b58c
Author: Jörg Hoh <jo...@users.noreply.github.com>
AuthorDate: Thu Dec 19 13:15:29 2024 +0100
SLING-12213 update dependencies (#11)
---
pom.xml | 28 ++++++------------
.../JacksonExporterLimitSerializationTest.java | 34 ++++++++++++++++++++++
2 files changed, 43 insertions(+), 19 deletions(-)
diff --git a/pom.xml b/pom.xml
index b907238..de48bd0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling-bundle-parent</artifactId>
- <version>60</version>
+ <version>62</version>
<relativePath />
</parent>
@@ -39,21 +39,11 @@
</scm>
<properties>
+ <sling.java.version>11</sling.java.version>
<project.build.outputTimestamp>2023-07-13T09:44:49Z</project.build.outputTimestamp>
+ <version.jackson>2.13.5</version.jackson>
</properties>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.junit</groupId>
- <artifactId>junit-bom</artifactId>
- <version>5.8.2</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
@@ -98,7 +88,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.api</artifactId>
- <version>2.4.0</version>
+ <version>2.25.4</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -123,19 +113,19 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
- <version>2.3.2</version>
+ <version>${version.jackson}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
- <version>2.3.2</version>
+ <version>${version.jackson}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
- <version>2.3.2</version>
+ <version>${version.jackson}</version>
<scope>provided</scope>
</dependency>
@@ -158,13 +148,13 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.testing.osgi-mock.junit5</artifactId>
- <version>3.2.0</version>
+ <version>3.5.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.testing.sling-mock.junit5</artifactId>
- <version>3.2.0</version>
+ <version>3.5.2</version>
<scope>test</scope>
</dependency>
<dependency>
diff --git a/src/test/java/org/apache/sling/models/jacksonexporter/impl/JacksonExporterLimitSerializationTest.java b/src/test/java/org/apache/sling/models/jacksonexporter/impl/JacksonExporterLimitSerializationTest.java
index 4325ee9..7d9fe97 100644
--- a/src/test/java/org/apache/sling/models/jacksonexporter/impl/JacksonExporterLimitSerializationTest.java
+++ b/src/test/java/org/apache/sling/models/jacksonexporter/impl/JacksonExporterLimitSerializationTest.java
@@ -37,6 +37,8 @@ import org.apache.sling.models.jacksonexporter.impl.example.PojoWithResourceReso
import org.apache.sling.models.jacksonexporter.impl.util.LogCapture;
import org.apache.sling.testing.mock.osgi.junit5.OsgiContext;
import org.apache.sling.testing.mock.osgi.junit5.OsgiContextExtension;
+import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -256,5 +258,37 @@ class JacksonExporterLimitSerializationTest {
public void refresh() {
// do nothing
}
+
+ @Override
+ public @Nullable Resource getParent(@NotNull Resource child) {
+ return null;
+ }
+
+ @Override
+ public boolean hasChildren(@NotNull Resource resource) {
+ return false;
+ }
+
+ @Override
+ public boolean orderBefore(
+ @NotNull Resource parent, @NotNull String name, @Nullable String followingSiblingName)
+ throws UnsupportedOperationException, PersistenceException, IllegalArgumentException {
+ return false;
+ }
+
+ @Override
+ public Resource copy(String srcAbsPath, String destAbsPath) throws PersistenceException {
+ return null;
+ }
+
+ @Override
+ public Resource move(String srcAbsPath, String destAbsPath) throws PersistenceException {
+ return null;
+ }
+
+ @Override
+ public @NotNull Map<String, Object> getPropertyMap() {
+ return Map.of();
+ }
}
}