File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ With Maven:
139
139
<repositories>
140
140
141
141
<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>
144
144
<snapshots><enabled>true</enabled></snapshots>
145
145
<releases><enabled>false</enabled></releases>
146
146
</repository>
@@ -154,7 +154,14 @@ With Gradle:
154
154
[source,groovy,subs="attributes,specialcharacters"]
155
155
----
156
156
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
+ }
158
165
mavenCentral()
159
166
}
160
167
----
You can’t perform that action at this time.
0 commit comments