Skip to content

Commit ad3ef7f

Browse files
author
chenkangqiang
committed
feat:maven revision
1 parent 81b4a6b commit ad3ef7f

File tree

16 files changed

+55
-16
lines changed

16 files changed

+55
-16
lines changed

client/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<parent>
88
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
10-
<version>0.2.6.Beta1-SNAPSHOT</version>
10+
<version>${revision}</version>
11+
<relativePath>../pom.xml</relativePath>
1112
</parent>
1213
<artifactId>a2a-java-sdk-client</artifactId>
1314

common/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<parent>
88
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
10-
<version>0.2.6.Beta1-SNAPSHOT</version>
10+
<version>${revision}</version>
11+
<relativePath>../pom.xml</relativePath>
1112
</parent>
1213
<artifactId>a2a-java-sdk-common</artifactId>
1314

examples/helloworld/client/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<parent>
88
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-examples-parent</artifactId>
10-
<version>0.2.6.Beta1-SNAPSHOT</version>
10+
<version>${revision}</version>
11+
<relativePath>../pom.xml</relativePath>
1112
</parent>
1213

1314
<artifactId>a2a-java-sdk-examples-client</artifactId>

examples/helloworld/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
10-
<version>0.2.6.Beta1-SNAPSHOT</version>
10+
<version>${revision}</version>
1111
<relativePath>../../pom.xml</relativePath>
1212
</parent>
1313

examples/helloworld/server/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<parent>
88
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-examples-parent</artifactId>
10-
<version>0.2.6.Beta1-SNAPSHOT</version>
10+
<version>${revision}</version>
11+
<relativePath>../pom.xml</relativePath>
1112
</parent>
1213

1314
<artifactId>a2a-java-sdk-examples-server</artifactId>

pom.xml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.a2asdk</groupId>
88
<artifactId>a2a-java-sdk-parent</artifactId>
9-
<version>0.2.6.Beta1-SNAPSHOT</version>
9+
<version>${revision}</version>
1010

1111
<packaging>pom</packaging>
1212

@@ -38,6 +38,7 @@
3838

3939

4040
<properties>
41+
<revision>0.2.6.Beta1-SNAPSHOT</revision>
4142
<grpc.version>1.73.0</grpc.version>
4243
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4344
<maven-clean-plugin.version>3.5.0</maven-clean-plugin.version>
@@ -47,6 +48,7 @@
4748
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
4849
<maven-javadoc-plugin.version>3.8.0</maven-javadoc-plugin.version>
4950
<maven-gpg-plugin.version>3.2.4</maven-gpg-plugin.version>
51+
<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
5052
<sonatype-central-publishing-plugin.version>0.8.0</sonatype-central-publishing-plugin.version>
5153
<jackson.version>2.17.0</jackson.version>
5254
<jakarta.enterprise.cdi-api.version>4.1.0</jakarta.enterprise.cdi-api.version>
@@ -260,6 +262,31 @@
260262
</execution>
261263
</executions>
262264
</plugin>
265+
<plugin>
266+
<groupId>org.codehaus.mojo</groupId>
267+
<artifactId>flatten-maven-plugin</artifactId>
268+
<version>${flatten-maven-plugin.version}</version>
269+
<configuration>
270+
<updatePomFile>true</updatePomFile>
271+
<flattenMode>ossrh</flattenMode>
272+
</configuration>
273+
<executions>
274+
<execution>
275+
<id>flatten</id>
276+
<goals>
277+
<goal>flatten</goal>
278+
</goals>
279+
<phase>generate-resources</phase>
280+
</execution>
281+
<execution>
282+
<id>flatten.clean</id>
283+
<goals>
284+
<goal>clean</goal>
285+
</goals>
286+
<phase>clean</phase>
287+
</execution>
288+
</executions>
289+
</plugin>
263290
</plugins>
264291
</pluginManagement>
265292
<plugins>
@@ -275,6 +302,10 @@
275302
<groupId>org.sonatype.central</groupId>
276303
<artifactId>central-publishing-maven-plugin</artifactId>
277304
</plugin>
305+
<plugin>
306+
<groupId>org.codehaus.mojo</groupId>
307+
<artifactId>flatten-maven-plugin</artifactId>
308+
</plugin>
278309
</plugins>
279310
</build>
280311

reference/common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
10-
<version>0.2.6.Beta1-SNAPSHOT</version>
10+
<version>${revision}</version>
1111
<relativePath>../../pom.xml</relativePath>
1212
</parent>
1313
<artifactId>a2a-java-sdk-reference-common</artifactId>

reference/grpc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.github.a2asdk</groupId>
88
<artifactId>a2a-java-sdk-parent</artifactId>
9-
<version>0.2.6.Beta1-SNAPSHOT</version>
9+
<version>${revision}</version>
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212

reference/jsonrpc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
10-
<version>0.2.6.Beta1-SNAPSHOT</version>
10+
<version>${revision}</version>
1111
<relativePath>../../pom.xml</relativePath>
1212
</parent>
1313
<artifactId>a2a-java-sdk-reference-jsonrpc</artifactId>

server-common/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<parent>
88
<groupId>io.github.a2asdk</groupId>
99
<artifactId>a2a-java-sdk-parent</artifactId>
10-
<version>0.2.6.Beta1-SNAPSHOT</version>
10+
<version>${revision}</version>
11+
<relativePath>../pom.xml</relativePath>
1112
</parent>
1213
<artifactId>a2a-java-sdk-server-common</artifactId>
1314

0 commit comments

Comments
 (0)