Add the ENTERPRISE_REPOSITORY env var to let user consume artifacts from their personal maven mirror

This commit is contained in:
Riccardo Cipolleschi
2025-07-24 08:50:21 +01:00
parent 8e47e5486f
commit 183be8e12c
2 changed files with 8 additions and 2 deletions
@@ -134,7 +134,10 @@ class ReactNativeDependenciesUtils
end
def self.release_tarball_url(version, build_type)
maven_repo_url = "https://repo1.maven.org/maven2"
maven_repo_url =
ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ?
ENV['ENTERPRISE_REPOSITORY'] :
"https://repo1.maven.org/maven2"
group = "com/facebook/react"
# Sample url from Maven:
# https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.79.0-rc.0/react-native-artifacts-0.79.0-rc.0-reactnative-dependencies-debug.tar.gz
@@ -204,7 +204,10 @@ def hermestag_file(react_native_path)
end
def release_tarball_url(version, build_type)
maven_repo_url = "https://repo1.maven.org/maven2"
maven_repo_url =
ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ?
ENV['ENTERPRISE_REPOSITORY'] :
"https://repo1.maven.org/maven2"
namespace = "com/facebook/react"
# Sample url from Maven:
# https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.0/react-native-artifacts-0.71.0-hermes-ios-debug.tar.gz