fix: Standardise on multi-version (vs multi-mode) (#876) · rhusar/a2a-java@046fcf8 · GitHub
Skip to content

Commit 046fcf8

Browse files
authored
fix: Standardise on multi-version (vs multi-mode) (a2aproject#876)
More tests/reference to tests/multiversion since that is what these tests are
1 parent 4710d2a commit 046fcf8

40 files changed

Lines changed: 17 additions & 17 deletions

.claude/architecture/compatibility_0.3.md

Lines changed: 3 additions & 3 deletions

.github/workflows/run-tck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
java-version: [17]
33-
profile: ['', 'multi-mode']
33+
profile: ['', 'multi-version']
3434
steps:
3535
- name: Checkout a2a-java
3636
uses: actions/checkout@v6
@@ -126,7 +126,7 @@ jobs:
126126
strategy:
127127
matrix:
128128
java-version: [17]
129-
profile: ['', 'multi-mode']
129+
profile: ['', 'multi-version']
130130
steps:
131131
- name: Checkout a2a-java
132132
uses: actions/checkout@v6

compat-0.3/tck/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
<profiles>
5353
<profile>
54-
<id>multi-mode</id>
54+
<id>multi-version</id>
5555
<dependencies>
5656
<dependency>
5757
<groupId>org.a2aproject.sdk</groupId>
@@ -81,14 +81,14 @@
8181
<artifactId>build-helper-maven-plugin</artifactId>
8282
<executions>
8383
<execution>
84-
<id>add-multi-mode-source</id>
84+
<id>add-multi-version-source</id>
8585
<phase>generate-sources</phase>
8686
<goals>
8787
<goal>add-source</goal>
8888
</goals>
8989
<configuration>
9090
<sources>
91-
<source>src/multi-mode/java</source>
91+
<source>src/multi-version/java</source>
9292
</sources>
9393
</configuration>
9494
</execution>

compat-0.3/tck/src/multi-mode/java/org/a2aproject/sdk/compat03/tck/server/DerivedAgentCardProducer.java renamed to compat-0.3/tck/src/multi-version/java/org/a2aproject/sdk/compat03/tck/server/DerivedAgentCardProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* Produces a v1.0 {@link AgentCard} derived from the v0.3 {@link AgentCard_v0_3}
20-
* when the multi-mode profile adds v1.0 reference dependencies to the classpath.
20+
* when the multi-version profile adds v1.0 reference dependencies to the classpath.
2121
* Overrides the {@code @DefaultBean} in {@code DefaultProducers}.
2222
*/
2323
@ApplicationScoped

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,9 @@
607607
<module>reference/multiversion-rest</module>
608608

609609
<!-- Multi-version test modules -->
610-
<module>tests/reference/jsonrpc</module>
611-
<module>tests/reference/rest</module>
612-
<module>tests/reference/grpc</module>
610+
<module>tests/multiversion/jsonrpc</module>
611+
<module>tests/multiversion/rest</module>
612+
<module>tests/multiversion/grpc</module>
613613

614614
<!-- BOMs - build order automatically determined by reactor based on dependencies -->
615615
<module>boms/extras</module>

tck/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
<profiles>
4949
<profile>
50-
<id>multi-mode</id>
50+
<id>multi-version</id>
5151
<dependencies>
5252
<dependency>
5353
<groupId>org.a2aproject.sdk</groupId>
@@ -80,14 +80,14 @@
8080
<artifactId>build-helper-maven-plugin</artifactId>
8181
<executions>
8282
<execution>
83-
<id>add-multi-mode-source</id>
83+
<id>add-multi-version-source</id>
8484
<phase>generate-sources</phase>
8585
<goals>
8686
<goal>add-source</goal>
8787
</goals>
8888
<configuration>
8989
<sources>
90-
<source>src/multi-mode/java</source>
90+
<source>src/multi-version/java</source>
9191
</sources>
9292
</configuration>
9393
</execution>

tck/src/multi-mode/java/org/a2aproject/sdk/sut/StubAgentCardProducer_v0_3.java renamed to tck/src/multi-version/java/org/a2aproject/sdk/sut/StubAgentCardProducer_v0_3.java

Lines changed: 2 additions & 2 deletions

tests/reference/grpc/src/test/java/org/a2aproject/sdk/tests/multiversion/grpc/A2ATestResource.java renamed to tests/multiversion/grpc/src/test/java/org/a2aproject/sdk/tests/multiversion/grpc/A2ATestResource.java

File renamed without changes.

tests/reference/grpc/src/test/java/org/a2aproject/sdk/tests/multiversion/grpc/AuthTestProfile.java renamed to tests/multiversion/grpc/src/test/java/org/a2aproject/sdk/tests/multiversion/grpc/AuthTestProfile.java

File renamed without changes.

0 commit comments

Comments
 (0)