Skip to content

Commit 88490b3

Browse files
committed
Fix broken docs snippet formatting
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent 271d781 commit 88490b3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,30 +70,32 @@ repositories {
7070
}
7171
}
7272
----
73+
======
7374

7475
**NOTE:** When using Maven with Spring AI snapshots, pay attention to your Maven mirror configuration. If you have configured a mirror in your `settings.xml` like this:
7576

76-
```xml
77+
[source,xml]
78+
----
7779
<mirror>
7880
<id>my-mirror</id>
7981
<mirrorOf>*</mirrorOf>
8082
<url>https://my-company-repository.com/maven</url>
8183
</mirror>
82-
```
84+
----
8385

8486
The wildcard `*` will redirect all repository requests to your mirror, preventing access to Spring snapshot repositories. To fix this, modify the `mirrorOf` configuration to exclude Spring repositories:
8587

86-
```xml
88+
[source,xml]
89+
----
8790
<mirror>
8891
<id>my-mirror</id>
8992
<mirrorOf>*,!spring-snapshots,!central-portal-snapshots</mirrorOf>
9093
<url>https://my-company-repository.com/maven</url>
9194
</mirror>
92-
```
95+
----
9396

9497
This configuration allows Maven to access Spring snapshot repositories directly while still using your mirror for other dependencies.
9598

96-
======
9799

98100
[[dependency-management]]
99101
== Dependency Management
@@ -133,9 +135,8 @@ dependencies {
133135
implementation 'org.springframework.ai:spring-ai-openai'
134136
}
135137
----
136-
138+
+
137139
Gradle users can also use the Spring AI BOM by leveraging Gradle (5.0+) native support for declaring dependency constraints using a Maven BOM. This is implemented by adding a 'platform' dependency handler method to the dependencies section of your Gradle build script.
138-
139140
======
140141

141142
[[add-dependencies]]

0 commit comments

Comments
 (0)