Skip to content

Commit 31c9539

Browse files
committed
Add update prompt
1 parent 46e4c77 commit 31c9539

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

src/prompts/update-to-snapshot.txt

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
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-SNAPSHOT
15+
16+
For Maven (pom.xml):
17+
- Replace <version>1.0.0-M5</version> with <version>1.0.0-SNAPSHOT</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-M5") to:
22+
implementation platform("org.springframework.ai:spring-ai-bom:1.0.0-SNAPSHOT")
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+
<repository>
39+
<id>spring-snapshots</id>
40+
<name>Spring Snapshots</name>
41+
<url>https://repo.spring.io/snapshot</url>
42+
<releases>
43+
<enabled>false</enabled>
44+
</releases>
45+
</repository>
46+
47+
<repository>
48+
<id>central-portal-snapshots</id>
49+
<name>Central Portal Snapshots</name>
50+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
51+
<releases>
52+
<enabled>false</enabled>
53+
</releases>
54+
<snapshots>
55+
<enabled>true</enabled>
56+
</snapshots>
57+
</repository>
58+
59+
- Add any missing repositories to the <repositories> section
60+
- Use the existing indentation style from the pom.xml file
61+
62+
For Gradle:
63+
- Add any missing repositories with proper formatting:
64+
repositories {
65+
mavenCentral()
66+
maven {
67+
url = uri("https://repo.spring.io/milestone")
68+
mavenContent {
69+
releasesOnly()
70+
}
71+
}
72+
maven {
73+
url = uri("https://repo.spring.io/snapshot")
74+
mavenContent {
75+
snapshotsOnly()
76+
}
77+
}
78+
maven {
79+
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
80+
mavenContent {
81+
snapshotsOnly()
82+
}
83+
}
84+
}
85+
86+
Task 3: Update Spring AI Artifact IDs
87+
88+
Apply this pattern for all Spring AI starters:
89+
- Model starters: spring-ai-{model}-spring-boot-starter → spring-ai-starter-model-{model}
90+
- Vector Store starters: spring-ai-{store}-store-spring-boot-starter → spring-ai-starter-vector-store-{store}
91+
- MCP starters: spring-ai-mcp-{type}-spring-boot-starter → spring-ai-starter-mcp-{type}
92+
93+
For Maven (pom.xml) - Examples:
94+
<!-- BEFORE -->
95+
<dependency>
96+
<groupId>org.springframework.ai</groupId>
97+
<artifactId>spring-ai-openai-spring-boot-starter</artifactId>
98+
</dependency>
99+
100+
<!-- AFTER -->
101+
<dependency>
102+
<groupId>org.springframework.ai</groupId>
103+
<artifactId>spring-ai-starter-model-openai</artifactId>
104+
</dependency>
105+
106+
For Gradle - Examples:
107+
// BEFORE
108+
implementation 'org.springframework.ai:spring-ai-openai-spring-boot-starter'
109+
implementation 'org.springframework.ai:spring-ai-redis-store-spring-boot-starter'
110+
111+
// AFTER
112+
implementation 'org.springframework.ai:spring-ai-starter-model-openai'
113+
implementation 'org.springframework.ai:spring-ai-starter-vector-store-redis'
114+
115+
CRITICAL - Do NOT make these changes:
116+
117+
1. Do NOT change any XML tags such as:
118+
- Do NOT change <name> to <n> (leave all <name> tags exactly as they are)
119+
- Do NOT modify any other XML elements like <description>, <properties>, etc.
120+
2. Do NOT attempt to fix XML formatting:
121+
- Do NOT add or remove whitespace except where specifically instructed
122+
- Do NOT add or remove newlines
123+
- Do NOT reformat XML indentation
124+
3. Make ONLY the three specific changes described above:
125+
- Update spring-ai-bom version to 1.0.0-SNAPSHOT
126+
- Add missing repositories from the list above
127+
- Update Spring AI artifactIds using the specified patterns
128+
129+
For all replacements, maintain the exact indentation and whitespace from the original file.

0 commit comments

Comments
 (0)