Skip to content

Commit 60203cb

Browse files
chore: Get ready to deploy to Maven Central using temporary groupId (#168)
# 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> 🦕 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 3e15279 commit 60203cb

File tree

15 files changed

+145
-31
lines changed

15 files changed

+145
-31
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ The A2A Java SDK provides two A2A server endpoint implementations, one based on
4242

4343
Add **one** of the following dependencies to your project:
4444

45+
> *⚠️ The `io.github.a2asdk` `groupId` below is temporary and will likely change for future releases.*
46+
4547
```xml
4648
<dependency>
47-
<groupId>io.a2a.sdk</groupId>
49+
<groupId>io.github.a2asdk</groupId>
4850
<artifactId>a2a-java-sdk-server-jakarta</artifactId>
51+
<!-- Use a released version from https://github.com/a2aproject/a2a-java/releases -->
4952
<version>${io.a2a.sdk.version}</version>
5053
</dependency>
5154
```
@@ -54,8 +57,9 @@ OR
5457

5558
```xml
5659
<dependency>
57-
<groupId>io.a2a.sdk</groupId>
60+
<groupId>io.github.a2asdk</groupId>
5861
<artifactId>a2a-java-sdk-server-quarkus</artifactId>
62+
<!-- Use a released version from https://github.com/a2aproject/a2a-java/releases -->
5963
<version>${io.a2a.sdk.version}</version>
6064
</dependency>
6165
```
@@ -198,10 +202,15 @@ public class WeatherAgentExecutorProducer {
198202
The A2A Java SDK provides a Java client implementation of the [Agent2Agent (A2A) Protocol](https://google-a2a.github.io/A2A), allowing communication with A2A servers.
199203
To make use of the Java `A2AClient`, simply add the following dependency:
200204

205+
----
206+
> *⚠️ The `io.github.a2asdk` `groupId` below is temporary and will likely change for future releases.*
207+
----
208+
201209
```xml
202210
<dependency>
203-
<groupId>io.a2a.sdk</groupId>
211+
<groupId>io.github.a2asdk</groupId>
204212
<artifactId>a2a-java-sdk-client</artifactId>
213+
<!-- Use a released version from https://github.com/a2aproject/a2a-java/releases -->
205214
<version>${io.a2a.sdk.version}</version>
206215
</dependency>
207216
```

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<parent>
8-
<groupId>io.a2a.sdk</groupId>
8+
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
1010
<version>0.2.4-SNAPSHOT</version>
1111
</parent>

common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<parent>
8-
<groupId>io.a2a.sdk</groupId>
8+
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
1010
<version>0.2.4-SNAPSHOT</version>
1111
</parent>

examples/helloworld/client/pom.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<parent>
8-
<groupId>io.a2a.sdk</groupId>
8+
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-examples-parent</artifactId>
1010
<version>0.2.4-SNAPSHOT</version>
1111
</parent>
@@ -17,7 +17,7 @@
1717

1818
<dependencies>
1919
<dependency>
20-
<groupId>io.a2a.sdk</groupId>
20+
<groupId>io.github.a2asdk</groupId>
2121
<artifactId>a2a-java-sdk-client</artifactId>
2222
</dependency>
2323
</dependencies>
@@ -27,14 +27,12 @@
2727
<plugin>
2828
<groupId>org.apache.maven.plugins</groupId>
2929
<artifactId>maven-compiler-plugin</artifactId>
30-
<version>${maven-compiler-plugin.version}</version>
3130
<configuration>
3231
</configuration>
3332
</plugin>
3433
<plugin>
3534
<groupId>org.apache.maven.plugins</groupId>
3635
<artifactId>maven-surefire-plugin</artifactId>
37-
<version>${maven-surefire-plugin.version}</version>
3836
</plugin>
3937
</plugins>
4038
</build>

examples/helloworld/client/src/main/java/io/a2a/examples/helloworld/HelloWorldRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///usr/bin/env jbang "$0" "$@" ; exit $?
2-
//DEPS io.a2a.sdk:a2a-java-sdk-client:0.2.4-SNAPSHOT
2+
//DEPS io.github.a2asdk:a2a-java-sdk-client:0.2.4-SNAPSHOT
33
//SOURCES HelloWorldClient.java
44

55
/**

examples/helloworld/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<parent>
8-
<groupId>io.a2a.sdk</groupId>
8+
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
1010
<version>0.2.4-SNAPSHOT</version>
1111
<relativePath>../../pom.xml</relativePath>
@@ -27,12 +27,12 @@
2727
<scope>import</scope>
2828
</dependency>
2929
<dependency>
30-
<groupId>io.a2a.sdk</groupId>
30+
<groupId>io.github.a2asdk</groupId>
3131
<artifactId>a2a-java-sdk-client</artifactId>
3232
<version>${project.version}</version>
3333
</dependency>
3434
<dependency>
35-
<groupId>io.a2a.sdk</groupId>
35+
<groupId>io.github.a2asdk</groupId>
3636
<artifactId>a2a-java-sdk-server-quarkus</artifactId>
3737
<version>${project.version}</version>
3838
</dependency>

examples/helloworld/server/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<parent>
8-
<groupId>io.a2a.sdk</groupId>
8+
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-examples-parent</artifactId>
1010
<version>0.2.4-SNAPSHOT</version>
1111
</parent>
@@ -17,7 +17,7 @@
1717

1818
<dependencies>
1919
<dependency>
20-
<groupId>io.a2a.sdk</groupId>
20+
<groupId>io.github.a2asdk</groupId>
2121
<artifactId>a2a-java-sdk-server-quarkus</artifactId>
2222
</dependency>
2323
<dependency>

pom.xml

Lines changed: 116 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>io.a2a.sdk</groupId>
7+
<groupId>io.github.a2asdk</groupId>
88
<artifactId>a2a-java-sdk-parent</artifactId>
99
<version>0.2.4-SNAPSHOT</version>
1010

@@ -13,10 +13,37 @@
1313
<name>Java SDK A2A Parent</name>
1414
<description>Java SDK for the Agent2Agent Protocol (A2A)</description>
1515

16+
<url>https://github.com/a2asdk/a2a-java-sdk</url>
17+
<licenses>
18+
<license>
19+
<name>The Apache License, Version 2.0</name>
20+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
21+
</license>
22+
</licenses>
23+
24+
<developers>
25+
<developer>
26+
<id>a2a-java</id>
27+
<name>The a2a-java developers</name>
28+
<organization>a2aproject</organization>
29+
<organizationUrl>https://github.com/a2aproject/a2a-java</organizationUrl>
30+
</developer>
31+
</developers>
32+
33+
<scm>
34+
<connection>scm:git:git://github.com/a2asdk/a2a-java-sdk.git</connection>
35+
<developerConnection>scm:git:ssh://github.com:a2asdk/a2a-java-sdk.git</developerConnection>
36+
<url>https://github.com/a2asdk/a2a-java-sdk</url>
37+
</scm>
38+
39+
1640
<properties>
1741
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1842
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
43+
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
44+
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
1945
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
46+
<sonatype-central-publishing-plugin.version>0.8.0</sonatype-central-publishing-plugin.version>
2047
<jackson.version>2.17.0</jackson.version>
2148
<jakarta.enterprise.cdi-api.version>4.1.0</jakarta.enterprise.cdi-api.version>
2249
<jakarta.inject.jakarta.inject-api.version>2.0.1</jakarta.inject.jakarta.inject-api.version>
@@ -33,6 +60,7 @@
3360

3461
<!-- Redirect test output to file -->
3562
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
63+
<maven-javadoc-plugin.version>3.8.0</maven-javadoc-plugin.version>
3664
</properties>
3765

3866
<dependencyManagement>
@@ -131,7 +159,7 @@
131159
<plugin>
132160
<groupId>org.apache.maven.plugins</groupId>
133161
<artifactId>maven-compiler-plugin</artifactId>
134-
<version>${compiler-plugin.version}</version>
162+
<version>${maven-compiler-plugin.version}</version>
135163
<configuration>
136164
<source>17</source>
137165
<target>17</target>
@@ -142,13 +170,18 @@
142170
</plugin>
143171
<plugin>
144172
<artifactId>maven-surefire-plugin</artifactId>
145-
<version>${surefire-plugin.version}</version>
173+
<version>${maven-surefire-plugin.version}</version>
146174
<configuration>
147175
<systemPropertyVariables>
148176
<maven.home>${maven.home}</maven.home>
149177
</systemPropertyVariables>
150178
</configuration>
151179
</plugin>
180+
<plugin>
181+
<groupId>org.apache.maven.plugins</groupId>
182+
<artifactId>maven-jar-plugin</artifactId>
183+
<version>3.4.2</version>
184+
</plugin>
152185
<plugin>
153186
<groupId>io.quarkus</groupId>
154187
<artifactId>quarkus-maven-plugin</artifactId>
@@ -164,21 +197,56 @@
164197
</execution>
165198
</executions>
166199
</plugin>
167-
200+
<plugin>
201+
<groupId>org.sonatype.central</groupId>
202+
<artifactId>central-publishing-maven-plugin</artifactId>
203+
<version>${sonatype-central-publishing-plugin.version}</version>
204+
<extensions>true</extensions>
205+
<configuration>
206+
<!-- This should point to a server entry in your settings.xml -->
207+
<publishingServerId>central-a2asdk-temp</publishingServerId>
208+
</configuration>
209+
</plugin>
210+
<plugin>
211+
<groupId>org.apache.maven.plugins</groupId>
212+
<artifactId>maven-source-plugin</artifactId>
213+
<version>${maven-source-plugin.version}</version>
214+
<executions>
215+
<execution>
216+
<id>attach-sources</id>
217+
<goals>
218+
<goal>jar-no-fork</goal>
219+
</goals>
220+
</execution>
221+
</executions>
222+
</plugin>
223+
<plugin>
224+
<groupId>org.apache.maven.plugins</groupId>
225+
<artifactId>maven-javadoc-plugin</artifactId>
226+
<version>${maven-javadoc-plugin.version}</version>
227+
<executions>
228+
<execution>
229+
<id>attach-javadocs</id>
230+
<goals>
231+
<goal>jar</goal>
232+
</goals>
233+
</execution>
234+
</executions>
235+
</plugin>
168236
</plugins>
169237
</pluginManagement>
170238
<plugins>
171239
<plugin>
172240
<groupId>org.apache.maven.plugins</groupId>
173241
<artifactId>maven-compiler-plugin</artifactId>
174-
<version>${maven-compiler-plugin.version}</version>
175-
<configuration>
176-
</configuration>
177242
</plugin>
178243
<plugin>
179244
<groupId>org.apache.maven.plugins</groupId>
180245
<artifactId>maven-surefire-plugin</artifactId>
181-
<version>${maven-surefire-plugin.version}</version>
246+
</plugin>
247+
<plugin>
248+
<groupId>org.sonatype.central</groupId>
249+
<artifactId>central-publishing-maven-plugin</artifactId>
182250
</plugin>
183251
</plugins>
184252
</build>
@@ -194,4 +262,44 @@
194262
<module>examples/helloworld</module>
195263
<module>tests/server-common</module>
196264
</modules>
265+
266+
<profiles>
267+
<profile>
268+
<!--
269+
This profile generates the required sources and javadoc in order to be able to deploy.
270+
The central-publishing-maven-plugin generates the required checksums upon deploy.
271+
-->
272+
<id>release</id>
273+
<build>
274+
<plugins>
275+
<plugin>
276+
<groupId>org.apache.maven.plugins</groupId>
277+
<artifactId>maven-source-plugin</artifactId>
278+
<executions>
279+
<execution>
280+
<id>attach-sources</id>
281+
<goals>
282+
<goal>jar-no-fork</goal>
283+
</goals>
284+
</execution>
285+
</executions>
286+
</plugin>
287+
288+
<plugin>
289+
<groupId>org.apache.maven.plugins</groupId>
290+
<artifactId>maven-javadoc-plugin</artifactId>
291+
<executions>
292+
<execution>
293+
<id>attach-javadocs</id>
294+
<goals>
295+
<goal>jar</goal>
296+
</goals>
297+
</execution>
298+
</executions>
299+
</plugin>
300+
</plugins>
301+
</build>
302+
</profile>
303+
</profiles>
304+
197305
</project>

sdk-jakarta/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<parent>
8-
<groupId>io.a2a.sdk</groupId>
8+
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
1010
<version>0.2.4-SNAPSHOT</version>
1111
</parent>

sdk-quarkus/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<parent>
8-
<groupId>io.a2a.sdk</groupId>
8+
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
1010
<version>0.2.4-SNAPSHOT</version>
1111
</parent>

0 commit comments

Comments
 (0)