Prototype - Storing the Hermes iOS tarballs on Maven. #34812
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
I'm not going to merge this as it is, this is mostly for discussions with the community for the sake of
RFC #508 react-native-community/discussions-and-proposals#508
Here I'm setting up a :ReactAndroid:external-artifacts Gradle module which is responsible of
uploading arbitrary artifacts to Maven (Central or any other repo).
In this specific example I'm uploading the Hermes iOS tarball which is 500+ Mb.
In this module I've configured the auth with Sonatype for publishing and the GPG signing of the artifacts.
Changelog
[Internal] [Changed] - Store the iOS Hermes tarball on Maven
Testing
I've tested this in a couple of ways:
Maven Local
ReactAndroid/external-artifacts/artifacts/hermes-ios.tar.gz
./gradlew :ReactAndroid:external-artifacts:publishToMavenLocal
Maven Central Staging Repository
I've pushed to a staging repository the tarball (so it's not released yet). It's currently available on:
https://oss.sonatype.org/service/local/repositories/comfacebook-3529/content/com/facebook/react/react-native-artifacts/0.0.1/react-native-artifacts-0.0.1-hermes-ios.tar.gz
(Link will expire in ~7 days).
If we were to release this to Maven Central, the final URL would be:
https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.0.1/react-native-artifacts-0.0.1-hermes-ios.tar.gz
To publish you need to:
com.facebook
group./gradlew :ReactAndroid:external-artifacts:publishAllPublicationsToMavenCentralRepository
More on this is described here: https://github.com/cortinico/kotlin-android-template#to-maven-central
Differential Revision: D39886167