Skip to content

Commit 0e7cd52

Browse files
authored
fix: Remove remaining jackson dependencies/imports (a2aproject#579)
1 parent 20361c7 commit 0e7cd52

File tree

4 files changed

+0
-32
lines changed

4 files changed

+0
-32
lines changed

boms/sdk/src/it/sdk-usage-test/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@
104104
</dependency>
105105

106106
<!-- Third-party dependencies -->
107-
<dependency>
108-
<groupId>com.fasterxml.jackson.core</groupId>
109-
<artifactId>jackson-databind</artifactId>
110-
</dependency>
111107
<dependency>
112108
<groupId>org.slf4j</groupId>
113109
<artifactId>slf4j-api</artifactId>

extras/queue-manager-replicated/core/src/main/java/io/a2a/extras/queuemanager/replicated/core/ReplicatedEventQueueItem.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package io.a2a.extras.queuemanager.replicated.core;
22

3-
import com.fasterxml.jackson.annotation.JsonGetter;
4-
import com.fasterxml.jackson.annotation.JsonIgnore;
5-
import com.fasterxml.jackson.annotation.JsonInclude;
6-
import com.fasterxml.jackson.annotation.JsonSetter;
73
import io.a2a.server.events.EventQueueItem;
84
import io.a2a.spec.A2AError;
95
import io.a2a.spec.Event;
@@ -12,10 +8,8 @@
128
public class ReplicatedEventQueueItem implements EventQueueItem {
139
private String taskId;
1410

15-
@JsonInclude(JsonInclude.Include.NON_NULL)
1611
private StreamingEventKind event;
1712

18-
@JsonInclude(JsonInclude.Include.NON_NULL)
1913
private A2AError error;
2014

2115
private boolean closedEvent;
@@ -71,13 +65,10 @@ public void setTaskId(String taskId) {
7165
* Get the StreamingEventKind event field (for JSON serialization).
7266
* @return the StreamingEventKind event or null
7367
*/
74-
@JsonGetter("event")
75-
@JsonInclude(JsonInclude.Include.NON_NULL)
7668
public StreamingEventKind getStreamingEvent() {
7769
return event;
7870
}
7971

80-
@JsonSetter("event")
8172
public void setEvent(StreamingEventKind event) {
8273
this.event = event;
8374
this.error = null; // Clear error when setting event
@@ -87,13 +78,10 @@ public void setEvent(StreamingEventKind event) {
8778
* Get the A2AError field (for JSON serialization).
8879
* @return the A2AError or null
8980
*/
90-
@JsonGetter("error")
91-
@JsonInclude(JsonInclude.Include.NON_NULL)
9281
public A2AError getErrorObject() {
9382
return error;
9483
}
9584

96-
@JsonSetter("error")
9785
public void setError(A2AError error) {
9886
this.error = error;
9987
this.event = null; // Clear event when setting error
@@ -104,7 +92,6 @@ public void setError(A2AError error) {
10492
* This is the method required by the EventQueueItem interface.
10593
* @return the event (StreamingEventKind, A2AError, or QueueClosedEvent) or null if none is set
10694
*/
107-
@JsonIgnore
10895
@Override
10996
public Event getEvent() {
11097
if (closedEvent) {
@@ -120,7 +107,6 @@ public Event getEvent() {
120107
* Indicates this is a replicated event (implements EventQueueItem).
121108
* @return always true for replicated events
122109
*/
123-
@JsonIgnore
124110
@Override
125111
public boolean isReplicated() {
126112
return true;
@@ -147,7 +133,6 @@ public boolean hasError() {
147133
* For JSON serialization.
148134
* @return true if this is a queue closed event
149135
*/
150-
@JsonGetter("closedEvent")
151136
public boolean isClosedEvent() {
152137
return closedEvent;
153138
}
@@ -156,7 +141,6 @@ public boolean isClosedEvent() {
156141
* Set the closed event flag (for JSON deserialization).
157142
* @param closedEvent true if this is a queue closed event
158143
*/
159-
@JsonSetter("closedEvent")
160144
public void setClosedEvent(boolean closedEvent) {
161145
this.closedEvent = closedEvent;
162146
if (closedEvent) {

server-common/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@
3838
<groupId>${project.groupId}</groupId>
3939
<artifactId>a2a-java-sdk-client-transport-jsonrpc</artifactId>
4040
</dependency>
41-
<dependency>
42-
<groupId>com.fasterxml.jackson.core</groupId>
43-
<artifactId>jackson-databind</artifactId>
44-
</dependency>
45-
<dependency>
46-
<groupId>com.fasterxml.jackson.datatype</groupId>
47-
<artifactId>jackson-datatype-jsr310</artifactId>
48-
</dependency>
4941
<dependency>
5042
<groupId>io.smallrye.reactive</groupId>
5143
<artifactId>mutiny-zero</artifactId>

transport/rest/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
<artifactId>mockito-core</artifactId>
5757
<scope>test</scope>
5858
</dependency>
59-
<dependency>
60-
<groupId>com.fasterxml.jackson.datatype</groupId>
61-
<artifactId>jackson-datatype-jsr310</artifactId>
62-
</dependency>
6359
<dependency>
6460
<groupId>com.google.protobuf</groupId>
6561
<artifactId>protobuf-java-util</artifactId>

0 commit comments

Comments
 (0)