@@ -29,11 +29,18 @@ internal object DependencyUtils {
2929 with (eachProject) {
3030 if (hasProperty(INTERNAL_REACT_NATIVE_MAVEN_LOCAL_REPO )) {
3131 val mavenLocalRepoPath = property(INTERNAL_REACT_NATIVE_MAVEN_LOCAL_REPO ) as String
32- mavenRepoFromURI(File (mavenLocalRepoPath).toURI())
32+ mavenRepoFromURI(File (mavenLocalRepoPath).toURI()) { repo ->
33+ repo.content { it.excludeGroup(" org.webkit" ) }
34+ }
3335 }
3436 // We add the snapshot for users on nightlies.
35- mavenRepoFromUrl(" https://oss.sonatype.org/content/repositories/snapshots/" )
37+ mavenRepoFromUrl(" https://oss.sonatype.org/content/repositories/snapshots/" ) { repo ->
38+ repo.content { it.excludeGroup(" org.webkit" ) }
39+ }
3640 repositories.mavenCentral { repo ->
41+ // We don't want to fetch JSC from Maven Central as there are older versions there.
42+ repo.content { it.excludeGroup(" org.webkit" ) }
43+
3744 // If the user provided a react.internal.mavenLocalRepo, do not attempt to load
3845 // anything from Maven Central that is react related.
3946 if (hasProperty(INTERNAL_REACT_NATIVE_MAVEN_LOCAL_REPO )) {
@@ -43,13 +50,15 @@ internal object DependencyUtils {
4350 repositories.google { repo ->
4451 repo.content {
4552 // We don't want to fetch JSC or React from Google
53+ it.excludeGroup(" org.webkit" )
4654 it.excludeGroup(" io.github.react-native-community" )
4755 it.excludeGroup(" com.facebook.react" )
4856 }
4957 }
5058 mavenRepoFromUrl(" https://www.jitpack.io" ) { repo ->
5159 repo.content {
5260 // We don't want to fetch JSC or React from JitPack
61+ it.excludeGroup(" org.webkit" )
5362 it.excludeGroup(" io.github.react-native-community" )
5463 it.excludeGroup(" com.facebook.react" )
5564 }
0 commit comments