Skip to content

Commit 24f7571

Browse files
committed
Move default producers into own module
1 parent a4325ed commit 24f7571

File tree

6 files changed

+88
-8
lines changed

6 files changed

+88
-8
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@
279279
<module>client</module>
280280
<module>common</module>
281281
<module>examples/helloworld</module>
282+
<module>reference/common</module>
282283
<module>reference/grpc</module>
283284
<module>reference/jsonrpc</module>
284285
<module>server-common</module>

reference/common/pom.xml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
3+
xmlns="http://maven.apache.org/POM/4.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>io.github.a2asdk</groupId>
9+
<artifactId>a2a-java-sdk-parent</artifactId>
10+
<version>0.2.6.Beta1-SNAPSHOT</version>
11+
<relativePath>../../pom.xml</relativePath>
12+
</parent>
13+
<artifactId>a2a-java-sdk-reference-common</artifactId>
14+
15+
<packaging>jar</packaging>
16+
17+
<name>Java A2A Reference Server: Common</name>
18+
<description>Java SDK for the Agent2Agent Protocol (A2A) - Common classes for A2A Reference Servers (based on Quarkus)</description>
19+
20+
<dependencies>
21+
<dependency>
22+
<groupId>${project.groupId}</groupId>
23+
<artifactId>a2a-java-sdk-server-common</artifactId>
24+
<version>${project.version}</version>
25+
</dependency>
26+
<dependency>
27+
<groupId>${project.groupId}</groupId>
28+
<artifactId>a2a-java-sdk-tests-server-common</artifactId>
29+
<version>${project.version}</version>
30+
<scope>provided</scope>
31+
</dependency>
32+
<dependency>
33+
<groupId>${project.groupId}</groupId>
34+
<artifactId>a2a-java-sdk-tests-server-common</artifactId>
35+
<type>test-jar</type>
36+
<scope>test</scope>
37+
<version>${project.version}</version>
38+
</dependency>
39+
<dependency>
40+
<groupId>io.quarkus</groupId>
41+
<artifactId>quarkus-reactive-routes</artifactId>
42+
</dependency>
43+
<dependency>
44+
<groupId>jakarta.enterprise</groupId>
45+
<artifactId>jakarta.enterprise.cdi-api</artifactId>
46+
</dependency>
47+
<dependency>
48+
<groupId>jakarta.inject</groupId>
49+
<artifactId>jakarta.inject-api</artifactId>
50+
</dependency>
51+
<dependency>
52+
<groupId>org.slf4j</groupId>
53+
<artifactId>slf4j-api</artifactId>
54+
</dependency>
55+
<dependency>
56+
<groupId>io.quarkus</groupId>
57+
<artifactId>quarkus-junit5</artifactId>
58+
<scope>test</scope>
59+
</dependency>
60+
<dependency>
61+
<groupId>io.quarkus</groupId>
62+
<artifactId>quarkus-rest-client-jackson</artifactId>
63+
<scope>test</scope>
64+
</dependency>
65+
<dependency>
66+
<groupId>org.junit.jupiter</groupId>
67+
<artifactId>junit-jupiter-api</artifactId>
68+
<scope>test</scope>
69+
</dependency>
70+
<dependency>
71+
<groupId>io.rest-assured</groupId>
72+
<artifactId>rest-assured</artifactId>
73+
<scope>test</scope>
74+
</dependency>
75+
</dependencies>
76+
</project>

reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/DefaultProducers.java renamed to reference/common/src/main/java/io/a2a/server/common/quarkus/DefaultProducers.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
package io.a2a.server.apps.quarkus;
2-
3-
import java.util.ArrayList;
4-
import java.util.Collections;
1+
package io.a2a.server.common.quarkus;
52

63
import jakarta.enterprise.context.ApplicationScoped;
74
import jakarta.enterprise.inject.Default;
85
import jakarta.ws.rs.Produces;
96

107
import io.a2a.server.PublicAgentCard;
118
import io.a2a.server.agentexecution.AgentExecutor;
12-
import io.a2a.server.agentexecution.RequestContext;
13-
import io.a2a.server.events.EventQueue;
14-
import io.a2a.spec.AgentCapabilities;
159
import io.a2a.spec.AgentCard;
16-
import io.a2a.spec.JSONRPCError;
1710
import io.quarkus.arc.DefaultBean;
1811

1912
/**

reference/common/src/main/resources/META-INF/beans.xml

Whitespace-only changes.

reference/grpc/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
<description>Java SDK for the Agent2Agent Protocol (A2A) - A2A gRPC Reference Server (based on Quarkus)</description>
1616

1717
<dependencies>
18+
<dependency>
19+
<groupId>${project.groupId}</groupId>
20+
<artifactId>a2a-java-sdk-reference-common</artifactId>
21+
<version>${project.version}</version>
22+
</dependency>
1823
<dependency>
1924
<groupId>${project.groupId}</groupId>
2025
<artifactId>a2a-java-sdk-transport-grpc</artifactId>

reference/jsonrpc/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
<description>Java SDK for the Agent2Agent Protocol (A2A) - A2A JSONRPC Reference Server (based on Quarkus)</description>
1919

2020
<dependencies>
21+
<dependency>
22+
<groupId>${project.groupId}</groupId>
23+
<artifactId>a2a-java-sdk-reference-common</artifactId>
24+
<version>${project.version}</version>
25+
</dependency>
2126
<dependency>
2227
<groupId>${project.groupId}</groupId>
2328
<artifactId>a2a-java-sdk-transport-jsonrpc</artifactId>

0 commit comments

Comments
 (0)