Skip to content

Commit a788f03

Browse files
authored
chore!: refactor split the transports into different packages (#214)
# Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md). - [x] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification. - Important Prefixes for [release-please](https://github.com/googleapis/release-please): - `fix:` which represents bug fixes, and correlates to a [SemVer](https://semver.org/) patch. - `feat:` represents a new feature, and correlates to a SemVer minor. - `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the `!`) and will result in a SemVer major. - [x] Ensure the tests pass - [x] Appropriate READMEs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent 8900cbd commit a788f03

File tree

167 files changed

+606
-367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+606
-367
lines changed

README.md

Lines changed: 15 additions & 2 deletions

client/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
</dependency>
2525
<dependency>
2626
<groupId>${project.groupId}</groupId>
27-
<artifactId>a2a-java-sdk-grpc</artifactId>
27+
<artifactId>a2a-java-sdk-spec</artifactId>
2828
<version>${project.version}</version>
2929
</dependency>
3030
<dependency>
3131
<groupId>${project.groupId}</groupId>
32-
<artifactId>a2a-java-sdk-spec</artifactId>
32+
<artifactId>a2a-java-sdk-spec-grpc</artifactId>
3333
<version>${project.version}</version>
3434
</dependency>
3535

examples/helloworld/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</dependency>
3434
<dependency>
3535
<groupId>io.github.a2asdk</groupId>
36-
<artifactId>a2a-java-reference-server</artifactId>
36+
<artifactId>a2a-java-sdk-reference-jsonrpc</artifactId>
3737
<version>${project.version}</version>
3838
</dependency>
3939
</dependencies>

examples/helloworld/server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dependencies>
1919
<dependency>
2020
<groupId>io.github.a2asdk</groupId>
21-
<artifactId>a2a-java-reference-server</artifactId>
21+
<artifactId>a2a-java-sdk-reference-jsonrpc</artifactId>
2222
</dependency>
2323
<dependency>
2424
<groupId>io.quarkus</groupId>

pom.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,19 @@
276276
</build>
277277

278278
<modules>
279-
<module>sdk-server-common</module>
279+
<module>client</module>
280280
<module>common</module>
281-
<module>grpc</module>
281+
<module>examples/helloworld</module>
282+
<module>reference/common</module>
283+
<module>reference/grpc</module>
284+
<module>reference/jsonrpc</module>
285+
<module>server-common</module>
282286
<module>spec</module>
283-
<module>client</module>
284-
<module>reference-grpc</module>
285-
<module>reference-impl</module>
287+
<module>spec-grpc</module>
286288
<module>tck</module>
287-
<module>examples/helloworld</module>
288289
<module>tests/server-common</module>
290+
<module>transport/jsonrpc</module>
291+
<module>transport/grpc</module>
289292
</modules>
290293

291294
<profiles>

reference-grpc/src/main/resources/application.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,16 @@
88
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
1010
<version>0.2.6.Beta1-SNAPSHOT</version>
11+
<relativePath>../../pom.xml</relativePath>
1112
</parent>
12-
<artifactId>a2a-java-reference-server</artifactId>
13+
<artifactId>a2a-java-sdk-reference-common</artifactId>
1314

1415
<packaging>jar</packaging>
1516

16-
<name>Java A2A Reference Server</name>
17-
<description>Java SDK for the Agent2Agent Protocol (A2A) - A2A Reference Server (based on Quarkus)</description>
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>
1819

1920
<dependencies>
20-
<dependency>
21-
<groupId>${project.groupId}</groupId>
22-
<artifactId>a2a-java-sdk-spec</artifactId>
23-
<version>${project.version}</version>
24-
</dependency>
2521
<dependency>
2622
<groupId>${project.groupId}</groupId>
2723
<artifactId>a2a-java-sdk-server-common</artifactId>

reference-impl/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
/**
File renamed without changes.
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,22 @@
77
<groupId>io.github.a2asdk</groupId>
88
<artifactId>a2a-java-sdk-parent</artifactId>
99
<version>0.2.6.Beta1-SNAPSHOT</version>
10-
<relativePath>../pom.xml</relativePath>
10+
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212

13-
<artifactId>reference-grpc</artifactId>
14-
<name>Java A2A gRPC Reference Server</name>
13+
<artifactId>a2a-java-sdk-reference-grpc</artifactId>
14+
<name>Java A2A Reference Server: gRPC</name>
1515
<description>Java SDK for the Agent2Agent Protocol (A2A) - A2A gRPC Reference Server (based on Quarkus)</description>
1616

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

0 commit comments

Comments
 (0)