Skip to content

Commit de64249

Browse files
Fix sample configs and remove runtimeOnly workarounds
- Remove runtimeOnly spring-ai-rag and spring-ai-mcp from shared config (no longer needed after T6 plugin split in sdk-java) - Fix workflow class package references (old prototype packages) - Add web-application-type: none to RAG and multimodel configs - Exclude conflicting chat auto-configs in multimodel sample All 5 samples now boot successfully against a Temporal dev server. MCP sample requires Node.js/npx for the MCP server. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e80d5f0 commit de64249

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

gradle/springai.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ dependencies {
2929
// Spring Boot
3030
implementation 'org.springframework.boot:spring-boot-starter'
3131

32-
// Required at runtime: the SpringAiPlugin introspects for VectorStore/MCP support
33-
runtimeOnly 'org.springframework.ai:spring-ai-rag'
34-
runtimeOnly 'org.springframework.ai:spring-ai-mcp'
35-
3632
dependencies {
3733
errorproneJavac('com.google.errorprone:javac:9+181-r4173-1')
3834
errorprone('com.google.errorprone:error_prone_core:2.28.0')

springai-mcp/src/main/resources/application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spring:
2525
workers:
2626
- task-queue: mcp-example-queue
2727
workflow-classes:
28-
- io.temporal.springai.example.mcp.McpWorkflowImpl
28+
- io.temporal.samples.springai.mcp.McpWorkflowImpl
2929

3030
logging:
3131
level:

springai-multimodel/src/main/resources/application.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
spring:
22
main:
33
banner-mode: off
4+
web-application-type: none
5+
autoconfigure:
6+
exclude:
7+
- org.springframework.ai.model.openai.autoconfigure.OpenAiChatAutoConfiguration
8+
- org.springframework.ai.model.anthropic.autoconfigure.AnthropicChatAutoConfiguration
49
ai:
510
openai:
611
api-key: ${OPENAI_API_KEY}
@@ -14,7 +19,7 @@ spring:
1419
workers:
1520
- task-queue: multi-model-queue
1621
workflow-classes:
17-
- io.temporal.springai.example.multimodel.MultiModelWorkflowImpl
22+
- io.temporal.samples.springai.multimodel.MultiModelWorkflowImpl
1823

1924
logging:
2025
level:

springai-rag/src/main/resources/application.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
spring:
22
main:
33
banner-mode: off
4+
web-application-type: none
45
ai:
56
openai:
67
api-key: ${OPENAI_API_KEY}
@@ -17,7 +18,7 @@ spring:
1718
workers:
1819
- task-queue: rag-example-queue
1920
workflow-classes:
20-
- io.temporal.springai.example.rag.RagWorkflowImpl
21+
- io.temporal.samples.springai.rag.RagWorkflowImpl
2122

2223
logging:
2324
level:

springai-sandboxing/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spring:
1616
workers:
1717
- task-queue: spring-ai-sandboxing-example
1818
workflow-classes:
19-
- io.temporal.springai.example.sandboxing.SandboxingWorkflowImpl
19+
- io.temporal.samples.springai.sandboxing.SandboxingWorkflowImpl
2020

2121
logging:
2222
level:

0 commit comments

Comments
 (0)