Skip to content

Commit a0b5a6e

Browse files
Explaining how to package ReactNative for Nexus/Maven deployment.
Summary: **Motivation** I needed to do this today. It's explained in code in the repository, but not included in the actual documentation. As React Native continues to grow, this is something that will be used more and more by the community. **Test plan (required)** No test plan required, this is simply a documentation change to add things that are only explained in code comments currently. Closes #12938 Differential Revision: D4709339 Pulled By: mkonicek fbshipit-source-id: a56c7573c3fa25a4059657b95b482b641ff229ff
1 parent 957b55c commit a0b5a6e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/AndroidBuildingFromSource.md

+12
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,18 @@ gradle.projectsLoaded {
143143
}
144144
```
145145

146+
## Building for Maven/Nexus deployment
147+
148+
If you find that you need to push up a locally compiled React Native .aar and related files to a remote Nexus repository, you can.
149+
150+
Start by following the `Point Gradle to your Android SDK` section of this page. Once you do this, assuming you have Gradle configured properly, you can then run the following command from the root of your React Native checkout to build and package all required files:
151+
152+
```
153+
./gradlew ReactAndroid:installArchives
154+
```
155+
156+
This will package everything that would typically be included in the `android` directory of your `node_modules/react-native/` installation in the root directory of your React Native checkout.
157+
146158
## Testing
147159

148160
If you made changes to React Native and submit a pull request, all tests will run on your pull request automatically. To run the tests locally, see [Testing](docs/testing.html).

0 commit comments

Comments
 (0)