Skip to content

Commit dbc9375

Browse files
committed
Add prompt to update to M7
1 parent 0aea186 commit dbc9375

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

src/prompts/update-to-m7.txt

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
Please perform the following three tasks in my project:
2+
3+
Important: File Access Instructions
4+
5+
- For all file reading operations, use the view tool to view file contents. e.g. cat on linux/mac
6+
- For multi-module projects, you'll need to examine multiple pom.xml or build.gradle files
7+
- Examples:
8+
cat pom.xml # For Maven root project
9+
cat module/pom.xml # For Maven modules
10+
cat build.gradle # For Gradle
11+
cat module/build.gradle # For Gradle modules
12+
cat build.gradle.kts # For Kotlin DSL
13+
14+
Task 1: Update Spring AI BOM Version to 1.0.0-M7
15+
16+
For Maven (pom.xml):
17+
- Replace <version>1.0.0-M6</version> or older versions with <version>1.0.0-M7</version> within the spring-ai-bom dependency
18+
- Use the exact whitespace/indentation from the original file
19+
20+
For Gradle (build.gradle or build.gradle.kts):
21+
- Update implementation platform("org.springframework.ai:spring-ai-bom:1.0.0-M6") or older versions to:
22+
implementation platform("org.springframework.ai:spring-ai-bom:1.0.0-M7")
23+
24+
Task 2: Ensure All Required Repositories Exist
25+
26+
For Maven (pom.xml):
27+
- Verify these three repositories exist in pom.xml file:
28+
29+
<repository>
30+
<id>spring-milestones</id>
31+
<name>Spring Milestones</name>
32+
<url>https://repo.spring.io/milestone</url>
33+
<snapshots>
34+
<enabled>false</enabled>
35+
</snapshots>
36+
</repository>
37+
38+
- Add any missing repositories to the <repositories> section
39+
- Use the existing indentation style from the pom.xml file
40+
41+
For Gradle:
42+
- Add any missing repositories with proper formatting:
43+
repositories {
44+
mavenCentral()
45+
maven {
46+
url = uri("https://repo.spring.io/milestone")
47+
mavenContent {
48+
releasesOnly()
49+
}
50+
}
51+
}
52+
53+
Task 3: Update Spring AI Artifact IDs
54+
55+
Apply this pattern for all Spring AI starters:
56+
- Model starters: spring-ai-{model}-spring-boot-starter → spring-ai-starter-model-{model}
57+
- Vector Store starters: spring-ai-{store}-store-spring-boot-starter → spring-ai-starter-vector-store-{store}
58+
- MCP starters: spring-ai-mcp-{type}-spring-boot-starter → spring-ai-starter-mcp-{type}
59+
60+
For Maven (pom.xml) - Examples:
61+
<!-- BEFORE -->
62+
<dependency>
63+
<groupId>org.springframework.ai</groupId>
64+
<artifactId>spring-ai-openai-spring-boot-starter</artifactId>
65+
</dependency>
66+
67+
<!-- AFTER -->
68+
<dependency>
69+
<groupId>org.springframework.ai</groupId>
70+
<artifactId>spring-ai-starter-model-openai</artifactId>
71+
</dependency>
72+
73+
For Gradle - Examples:
74+
// BEFORE
75+
implementation 'org.springframework.ai:spring-ai-openai-spring-boot-starter'
76+
implementation 'org.springframework.ai:spring-ai-redis-store-spring-boot-starter'
77+
78+
// AFTER
79+
implementation 'org.springframework.ai:spring-ai-starter-model-openai'
80+
implementation 'org.springframework.ai:spring-ai-starter-vector-store-redis'
81+
82+
CRITICAL - Do NOT make these changes:
83+
84+
1. Do NOT change any XML tags such as:
85+
- Do NOT change <name> to <n> (leave all <name> tags exactly as they are)
86+
- Do NOT modify any other XML elements like <description>, <properties>, etc.
87+
2. Do NOT attempt to fix XML formatting:
88+
- Do NOT add or remove whitespace except where specifically instructed
89+
- Do NOT add or remove newlines
90+
- Do NOT reformat XML indentation
91+
3. Make ONLY the three specific changes described above:
92+
- Update spring-ai-bom version to 1.0.0-M7
93+
- Add missing repositories from the list above
94+
- Update Spring AI artifactIds using the specified patterns
95+
96+
For all replacements, maintain the exact indentation and whitespace from the original file.

0 commit comments

Comments
 (0)