Skip to content

Migrate demos 2-4 to new temporal-spring-ai plugin#1

Open
donald-pinckney wants to merge 2 commits intotemporal-community:mainfrom
donald-pinckney:migrate-to-official-spring-ai-plugin
Open

Migrate demos 2-4 to new temporal-spring-ai plugin#1
donald-pinckney wants to merge 2 commits intotemporal-community:mainfrom
donald-pinckney:migrate-to-official-spring-ai-plugin

Conversation

@donald-pinckney
Copy link
Copy Markdown

Summary

Replaces the prototype io.temporal.ai:temporal-spring-ai:0.0.1-SNAPSHOT with the official io.temporal:temporal-spring-ai:1.35.0-SNAPSHOT from the Temporal Java SDK (temporalio/sdk-java#2829).

Changes

  • lib/: Replaced pre-built jar with one built from the SDK branch
  • install-libs.sh: Updated artifact coordinates (io.temporal groupId, 1.35.0-SNAPSHOT version)
  • POMs: New dependency coordinates, bumped spring-ai to 1.1.0 and temporal-sdk to 1.35.0-SNAPSHOT
  • Imports: io.temporal.ai.chat.*io.temporal.springai.* (4 Java files)
  • API rename: McpToolCallback.fromMcpTools()McpToolCallback.fromMcpClient()
  • application.yaml: Removed chatModelActivity and mcpClientActivityImpl from activity-beans — the plugin now auto-registers these via Spring Boot auto-configuration
  • WorkerApplication: Removed @ComponentScan overrides — the plugin uses auto-configuration instead of component scanning

What the official plugin provides

The official temporal-spring-ai module uses conditional auto-configuration to register activities automatically:

  • SpringAiPlugin always registers ChatModelActivity (core)
  • McpPlugin registers McpClientActivity when MCP is on the classpath
  • No manual bean registration or component scanning needed

Verification

All three demos compile and demo2 boots successfully with the plugin auto-registering activities.

Dependencies

🤖 Generated with Claude Code

Replace the prototype io.temporal.ai:temporal-spring-ai:0.0.1-SNAPSHOT
with the official io.temporal:temporal-spring-ai:1.35.0-SNAPSHOT from
the Temporal Java SDK.

Changes across all demos:
- Import renames: io.temporal.ai.chat.* -> io.temporal.springai.*
- POM: new groupId, version, bumped spring-ai to 1.1.0, temporal-sdk to 1.35.0-SNAPSHOT
- Remove chatModelActivity/mcpClientActivityImpl from activity-beans
  (auto-registered by SpringAiPlugin/McpPlugin via auto-configuration)
- Remove @componentscan overrides (plugin uses auto-config, not scanning)
- API rename: McpToolCallback.fromMcpTools() -> fromMcpClient()
- Replace pre-built jar in lib/

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@donald-pinckney donald-pinckney changed the title Migrate demos 2-4 to official temporal-spring-ai plugin Migrate demos 2-4 to new temporal-spring-ai plugin Apr 8, 2026
Only temporal-spring-ai needs to be a SNAPSHOT (not yet released).
The SDK itself at 1.34.0 already has SimplePlugin and everything
the plugin needs at runtime.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant