mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/34967 This diff is a preparatory work for publishing artifacts on Maven Central. What it does is: 1. It sets up all the 3 modules (react-native, hermes-engine, external-artifacts) for publishg 2. Adds coordinates to publish on the Snapshot repository 3. Adds support for appendign -SNAPSHOT version if invoked with `-PisNightly=true` 4. Configures GPG signing of artifacts. I haven't touched the CircleCI and JS code yet. I'll do it in another diff. Changelog: [General] [Changed] - Setup publishing for Snapshot and Stable on Maven Reviewed By: mdvacca, cipolleschi Differential Revision: D40146212 fbshipit-source-id: 9321e16f6c18b35bc3ae785749d613085c56e7bc
33 lines
800 B
Groovy
33 lines
800 B
Groovy
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
plugins {
|
|
id("maven-publish")
|
|
}
|
|
|
|
group = "com.facebook.react"
|
|
version = parent.publishing_version
|
|
configurations.maybeCreate("default")
|
|
|
|
// The artifact should be placed inside the `artifacts/hermes-ios.tar.gz` location.
|
|
def hermesiOSArtifactFile = layout.projectDirectory.file('artifacts/hermes-ios.tar.gz')
|
|
def hermesiOSArtifact = artifacts.add('default', hermesiOSArtifactFile) {
|
|
type 'tgz'
|
|
extension 'tar.gz'
|
|
classifier 'hermes-ios'
|
|
}
|
|
|
|
apply from: "../publish.gradle"
|
|
|
|
publishing {
|
|
publications {
|
|
getByName("release") {
|
|
artifact hermesiOSArtifact
|
|
}
|
|
}
|
|
}
|