Skip to content

Commit e386b01

Browse files
committed
Update Nightly URL for newly published versions on central.sonatype.com (#52004)
Summary: Pull Request resolved: #52004 This is necessary because the snapshots are now going to be published on a different repository: central.sonatype.com. Changelog: [Internal] [Changed] - Reviewed By: cipolleschi Differential Revision: D76596802 fbshipit-source-id: 424fb1134e41502d53b76209fba325c895c79ba8
1 parent 129622d commit e386b01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/DependencyUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ internal object DependencyUtils {
3737
}
3838
}
3939
// We add the snapshot for users on nightlies.
40-
mavenRepoFromUrl("https://oss.sonatype.org/content/repositories/snapshots/") { repo ->
40+
mavenRepoFromUrl("https://central.sonatype.com/repository/maven-snapshots/") { repo ->
4141
repo.content { it.excludeGroup("org.webkit") }
4242
}
4343
repositories.mavenCentral { repo ->

packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/utils/DependencyUtilsTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DependencyUtilsTest {
4545

4646
@Test
4747
fun configureRepositories_containsSnapshotRepo() {
48-
val repositoryURI = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
48+
val repositoryURI = URI.create("https://central.sonatype.com/repository/maven-snapshots/")
4949
val project = createProject()
5050

5151
configureRepositories(project)
@@ -176,7 +176,7 @@ class DependencyUtilsTest {
176176

177177
@Test
178178
fun configureRepositories_snapshotRepoHasHigherPriorityThanMavenCentral() {
179-
val repositoryURI = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
179+
val repositoryURI = URI.create("https://central.sonatype.com/repository/maven-snapshots/")
180180
val mavenCentralURI = URI.create("https://repo.maven.apache.org/maven2/")
181181
val project = createProject()
182182

0 commit comments

Comments
 (0)