Skip to content

Commit a9addec

Browse files
committed
release: 1.0.2
Change-Id: I3eab95ad4d368f5b7649dfd4e667029bf1c2daf6
1 parent 62d0be0 commit a9addec

File tree

8 files changed

+15
-18
lines changed

8 files changed

+15
-18
lines changed

agentscope-core/src/main/java/io/agentscope/core/Version.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
public final class Version {
2525

2626
/** AgentScope Java version */
27-
public static final String VERSION = "1.0.2-SNAPSHOT";
27+
public static final String VERSION = "1.0.2";
2828

2929
private Version() {
3030
// Utility class - prevent instantiation
@@ -35,7 +35,7 @@ private Version() {
3535
*
3636
* <p>Format: {@code agentscope-java/{version}; java/{java_version}; platform/{os}}
3737
*
38-
* <p>Example: {@code agentscope-java/1.0.2-SNAPSHOT; java/17.0.1; platform/Mac OS X}
38+
* <p>Example: {@code agentscope-java/1.0.2; java/17.0.1; platform/Mac OS X}
3939
*
4040
* @return unified User-Agent string
4141
*/

agentscope-core/src/main/java/io/agentscope/core/tool/mcp/McpClientBuilder.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ public Mono<McpClientWrapper> buildAsync() {
206206

207207
McpSchema.Implementation clientInfo =
208208
new McpSchema.Implementation(
209-
"agentscope-java",
210-
"AgentScope Java Framework",
211-
"1.0.2-SNAPSHOT");
209+
"agentscope-java", "AgentScope Java Framework", "1.0.2");
212210

213211
McpSchema.ClientCapabilities clientCapabilities =
214212
McpSchema.ClientCapabilities.builder().build();
@@ -239,7 +237,7 @@ public McpClientWrapper buildSync() {
239237

240238
McpSchema.Implementation clientInfo =
241239
new McpSchema.Implementation(
242-
"agentscope-java", "AgentScope Java Framework", "1.0.2-SNAPSHOT");
240+
"agentscope-java", "AgentScope Java Framework", "1.0.2");
243241

244242
McpSchema.ClientCapabilities clientCapabilities =
245243
McpSchema.ClientCapabilities.builder().build();

agentscope-core/src/test/java/io/agentscope/core/VersionTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ void testVersionConstant() {
3030
// Verify version constant is set
3131
Assertions.assertNotNull(Version.VERSION, "VERSION constant should not be null");
3232
Assertions.assertFalse(Version.VERSION.isEmpty(), "VERSION constant should not be empty");
33-
Assertions.assertEquals(
34-
"1.0.2-SNAPSHOT", Version.VERSION, "VERSION should match current version");
33+
Assertions.assertEquals("1.0.2", Version.VERSION, "VERSION should match current version");
3534
}
3635

3736
@Test
@@ -99,7 +98,7 @@ void testGetUserAgent_Consistency() {
9998
void testGetUserAgent_ExampleFormat() {
10099
String userAgent = Version.getUserAgent();
101100

102-
// Example: agentscope-java/1.0.2-SNAPSHOT; java/17.0.1; platform/Mac OS X
101+
// Example: agentscope-java/1.0.2; java/17.0.1; platform/Mac OS X
103102
// Verify matches expected pattern (relaxed check for different environments)
104103
String pattern = "^agentscope-java/.+; java/[0-9.]+; platform/.+$";
105104
Assertions.assertTrue(

agentscope-core/src/test/java/io/agentscope/core/tool/mcp/McpAsyncClientWrapperTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void testConstructor() {
5757
void testInitialize_Success() {
5858
// Mock initialization
5959
McpSchema.Implementation serverInfo =
60-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
60+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2");
6161
McpSchema.InitializeResult initResult =
6262
new McpSchema.InitializeResult(
6363
"1.0",
@@ -103,7 +103,7 @@ void testInitialize_Success() {
103103
@Test
104104
void testInitialize_AlreadyInitialized() {
105105
McpSchema.Implementation serverInfo =
106-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
106+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2");
107107
McpSchema.InitializeResult initResult =
108108
new McpSchema.InitializeResult(
109109
"1.0",
@@ -202,7 +202,7 @@ void testClose_Success() {
202202

203203
private void setupSuccessfulInitialization() {
204204
McpSchema.Implementation serverInfo =
205-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
205+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2");
206206
McpSchema.InitializeResult initResult =
207207
new McpSchema.InitializeResult(
208208
"1.0",

agentscope-core/src/test/java/io/agentscope/core/tool/mcp/McpClientBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void testComplexConfiguration() {
380380
void testSseTransport_WithCompleteConfiguration() {
381381
Map<String, String> headers = new HashMap<>();
382382
headers.put("Authorization", "Bearer token");
383-
headers.put("X-Client-Version", "1.0.2-SNAPSHOT");
383+
headers.put("X-Client-Version", "1.0.2");
384384

385385
McpClientBuilder builder =
386386
McpClientBuilder.create("full-sse-client")

agentscope-core/src/test/java/io/agentscope/core/tool/mcp/McpSyncClientWrapperTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void testConstructor() {
5858
void testInitialize_Success() {
5959
// Mock initialization with correct constructors
6060
McpSchema.Implementation serverInfo =
61-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
61+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2");
6262
McpSchema.InitializeResult initResult =
6363
new McpSchema.InitializeResult(
6464
"1.0",
@@ -104,7 +104,7 @@ void testInitialize_Success() {
104104
@Test
105105
void testInitialize_AlreadyInitialized() {
106106
McpSchema.Implementation serverInfo =
107-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
107+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2");
108108
McpSchema.InitializeResult initResult =
109109
new McpSchema.InitializeResult(
110110
"1.0",
@@ -316,7 +316,7 @@ void testCallTool_WithNullArguments() {
316316

317317
private void setupSuccessfulInitialization() {
318318
McpSchema.Implementation serverInfo =
319-
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2-SNAPSHOT");
319+
new McpSchema.Implementation("TestServer", "Test Server", "1.0.2");
320320
McpSchema.InitializeResult initResult =
321321
new McpSchema.InitializeResult(
322322
"1.0",

agentscope-dependencies-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</developers>
6161

6262
<properties>
63-
<revision>1.0.2-SNAPSHOT</revision>
63+
<revision>1.0.2</revision>
6464
<java.version>17</java.version>
6565
<spotless.version>2.46.1</spotless.version>
6666
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<name>AgentScope Java - Parent</name>
2828

2929
<properties>
30-
<revision>1.0.2-SNAPSHOT</revision>
30+
<revision>1.0.2</revision>
3131
<java.version>17</java.version>
3232
<maven.compiler.source>17</maven.compiler.source>
3333
<maven.compiler.target>17</maven.compiler.target>

0 commit comments

Comments
 (0)