Skip to content

Commit 9e390c1

Browse files
tzolovmarkpollack
authored andcommitted
docs: Update repository configuration in getting-started guide
- Reorganize sections to focus on Milestones vs Snapshots instead of specific versions - Add Central Portal Snapshots repository configuration for both Maven and Gradle Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent 268248b commit 9e390c1

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/getting-started.adoc

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,15 @@ Head on over to https://start.spring.io/[start.spring.io] and select the AI Mode
1515
[[artifact-repositories]]
1616
== Artifact Repositories
1717

18-
=== 1.0 M6 and after - Use Maven Central
18+
=== Milestones - Use Maven Central
1919

20-
As of 1.0 M6, releases are available in Maven Central.
20+
As of 1.0.0-M6, releases are available in Maven Central.
2121
No changes to your build file are required.
2222

2323

24-
=== Pre 1.0 M6 - Add Spring Repositories
24+
=== Snapshots - Add Snapshot Repositories
2525

26-
You will need to add Spring milestone and snapshot repositories to your build system.
27-
28-
If you prefer to add the dependency snippets by hand, follow the directions in the following sections.
29-
30-
To use the Milestone and Snapshot version, you need to add references to the Spring Milestone and/or Snapshot repositories in your build file.
26+
To use the Snapshot (and pre 1.0.0-M6 milestone) versions, you need to add the following snapshot repositories in your build file.
3127

3228
Add the following repository definitions to your Maven or Gradle build file:
3329

@@ -54,6 +50,17 @@ Maven::
5450
<enabled>false</enabled>
5551
</releases>
5652
</repository>
53+
<repository>
54+
<name>Central Portal Snapshots</name>
55+
<id>central-portal-snapshots</id>
56+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
57+
<releases>
58+
<enabled>false</enabled>
59+
</releases>
60+
<snapshots>
61+
<enabled>true</enabled>
62+
</snapshots>
63+
</repository>
5764
</repositories>
5865
----
5966
@@ -65,6 +72,10 @@ repositories {
6572
mavenCentral()
6673
maven { url 'https://repo.spring.io/milestone' }
6774
maven { url 'https://repo.spring.io/snapshot' }
75+
maven {
76+
name = 'Central Portal Snapshots'
77+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
78+
}
6879
}
6980
----
7081
======

0 commit comments

Comments
 (0)