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:
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----
156156repositories {
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----
You can’t perform that action at this time.
0 commit comments