From 9e390c11a87ee59daa781737330cd82a7e6efa4c Mon Sep 17 00:00:00 2001 From: Christian Tzolov Date: Wed, 12 Mar 2025 18:45:14 +0100 Subject: [PATCH] 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 --- .../modules/ROOT/pages/getting-started.adoc | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/getting-started.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/getting-started.adoc index b4b6f8412..130087294 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/getting-started.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/getting-started.adoc @@ -15,19 +15,15 @@ Head on over to https://start.spring.io/[start.spring.io] and select the AI Mode [[artifact-repositories]] == Artifact Repositories -=== 1.0 M6 and after - Use Maven Central +=== Milestones - Use Maven Central -As of 1.0 M6, releases are available in Maven Central. +As of 1.0.0-M6, releases are available in Maven Central. No changes to your build file are required. -=== Pre 1.0 M6 - Add Spring Repositories +=== Snapshots - Add Snapshot Repositories -You will need to add Spring milestone and snapshot repositories to your build system. - -If you prefer to add the dependency snippets by hand, follow the directions in the following sections. - -To use the Milestone and Snapshot version, you need to add references to the Spring Milestone and/or Snapshot repositories in your build file. +To use the Snapshot (and pre 1.0.0-M6 milestone) versions, you need to add the following snapshot repositories in your build file. Add the following repository definitions to your Maven or Gradle build file: @@ -54,6 +50,17 @@ Maven:: false + + Central Portal Snapshots + central-portal-snapshots + https://central.sonatype.com/repository/maven-snapshots/ + + false + + + true + + ---- @@ -65,6 +72,10 @@ repositories { mavenCentral() maven { url 'https://repo.spring.io/milestone' } maven { url 'https://repo.spring.io/snapshot' } + maven { + name = 'Central Portal Snapshots' + url = 'https://central.sonatype.com/repository/maven-snapshots/' + } } ---- ======