Skip to content

Commit ff7d18e

Browse files
committed
Upgrade examples to Boot4/spring-ai 2.0
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent 890a20a commit ff7d18e

57 files changed

Lines changed: 109 additions & 130 deletions

File tree

Some content is hidden

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

advisors/evaluation-recursive-advisor-demo/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.5.7</version>
8+
<version>4.0.0</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.example</groupId>
@@ -44,7 +44,7 @@
4444
<dependency>
4545
<groupId>org.springframework.ai</groupId>
4646
<artifactId>spring-ai-bom</artifactId>
47-
<version>2.0.0-SNAPSHOT</version>
47+
<version>${spring-ai.version}</version>
4848
<type>pom</type>
4949
<scope>import</scope>
5050
</dependency>

advisors/recursive-advisor-demo/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.5.7</version>
8+
<version>4.0.0</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.example</groupId>
@@ -24,6 +24,13 @@
2424
<artifactId>spring-ai-starter-model-anthropic</artifactId>
2525
</dependency>
2626

27+
<!-- Netty DNS resolver for macOS -->
28+
<dependency>
29+
<groupId>io.netty</groupId>
30+
<artifactId>netty-resolver-dns-native-macos</artifactId>
31+
<classifier>osx-aarch_64</classifier>
32+
</dependency>
33+
2734
<dependency>
2835
<groupId>org.springframework.boot</groupId>
2936
<artifactId>spring-boot-starter-test</artifactId>

agentic-patterns/chain-workflow/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ This implementation shows a four-step workflow for processing numerical data in
2020
## Technical Requirements
2121

2222
- Java 17 or higher
23-
- Spring Boot 3.4.1
24-
- Spring AI 1.0.0-M5
23+
- Spring Boot 4.0.0
24+
- Spring AI 2.0.0-SNAPSHOT
2525
- Ollama (for LLM integration)
2626

2727
## Getting Started

agentic-patterns/chain-workflow/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.4.5</version>
9+
<version>4.0.0</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.example.spring.ai</groupId>
@@ -51,7 +51,7 @@
5151
<dependency>
5252
<groupId>org.springframework.ai</groupId>
5353
<artifactId>spring-ai-bom</artifactId>
54-
<version>2.0.0-SNAPSHOT</version>
54+
<version>${spring-ai.version}</version>
5555
<type>pom</type>
5656
<scope>import</scope>
5757
</dependency>

agentic-patterns/evaluator-optimizer/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.4.5</version>
9+
<version>4.0.0</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.example.spring.ai</groupId>
@@ -52,7 +52,7 @@
5252
<dependency>
5353
<groupId>org.springframework.ai</groupId>
5454
<artifactId>spring-ai-bom</artifactId>
55-
<version>2.0.0-SNAPSHOT</version>
55+
<version>${spring-ai.version}</version>
5656
<type>pom</type>
5757
<scope>import</scope>
5858
</dependency>

agentic-patterns/orchestrator-workers/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.4.5</version>
9+
<version>4.0.0</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212
<groupId>com.example.spring.ai</groupId>
@@ -51,7 +51,7 @@
5151
<dependency>
5252
<groupId>org.springframework.ai</groupId>
5353
<artifactId>spring-ai-bom</artifactId>
54-
<version>2.0.0-SNAPSHOT</version>
54+
<version>${spring-ai.version}</version>
5555
<type>pom</type>
5656
<scope>import</scope>
5757
</dependency>

agentic-patterns/parallelization-workflow/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.4.5</version>
9+
<version>4.0.0</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212

@@ -55,7 +55,7 @@
5555
<dependency>
5656
<groupId>org.springframework.ai</groupId>
5757
<artifactId>spring-ai-bom</artifactId>
58-
<version>2.0.0-SNAPSHOT</version>
58+
<version>${spring-ai.version}</version>
5959
<type>pom</type>
6060
<scope>import</scope>
6161
</dependency>

agentic-patterns/routing-workflow/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.4.5</version>
9+
<version>4.0.0</version>
1010
<relativePath /> <!-- lookup parent from repository -->
1111
</parent>
1212

@@ -56,7 +56,7 @@
5656
<dependency>
5757
<groupId>org.springframework.ai</groupId>
5858
<artifactId>spring-ai-bom</artifactId>
59-
<version>2.0.0-SNAPSHOT</version>
59+
<version>${spring-ai.version}</version>
6060
<type>pom</type>
6161
<scope>import</scope>
6262
</dependency>

agents/reflection/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.4.5</version>
8+
<version>4.0.0</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.example</groupId>
@@ -15,14 +15,15 @@
1515
<description>Simple AI Application using OpenAPI Service</description>
1616
<properties>
1717
<java.version>17</java.version>
18+
<spring-ai.version>2.0.0-SNAPSHOT</spring-ai.version>
1819
</properties>
1920

2021
<dependencyManagement>
2122
<dependencies>
2223
<dependency>
2324
<groupId>org.springframework.ai</groupId>
2425
<artifactId>spring-ai-bom</artifactId>
25-
<version>2.0.0-SNAPSHOT</version>
26+
<version>${spring-ai.version}</version>
2627
<type>pom</type>
2728
<scope>import</scope>
2829
</dependency>

misc/openai-streaming-response/model-context-protocol/weather/starter-webmvc-server/integration-tests/ExampleInfo.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)