Skip to content

Commit f6b389e

Browse files
committed
Use new snapshot repository in documentation
1 parent fc83c4d commit f6b389e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/docs/asciidoc/setup.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ With Maven:
139139
<repositories>
140140
141141
<repository>
142-
<id>ossrh</id>
143-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
142+
<id>central-portal-snapshots</id>
143+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
144144
<snapshots><enabled>true</enabled></snapshots>
145145
<releases><enabled>false</enabled></releases>
146146
</repository>
@@ -154,7 +154,14 @@ With Gradle:
154154
[source,groovy,subs="attributes,specialcharacters"]
155155
----
156156
repositories {
157-
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
157+
maven {
158+
name = 'Central Portal Snapshots'
159+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
160+
// Only search this repository for the specific dependency
161+
content {
162+
includeModule("com.rabbitmq", "{project-artifact-id}")
163+
}
164+
}
158165
mavenCentral()
159166
}
160167
----

0 commit comments

Comments
 (0)