Don't publish Hermes artifacts from the React Native Repository (#53986)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/53986

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D83137498

fbshipit-source-id: 63203406002a31d0f2d9cf7577274f6e33544c74
This commit is contained in:
Jakub Piasecki authored and meta-codesync[bot] committed 2025-10-22 09:48:13 -07:00
1 parent e2165619dd
commit 77164aaa29
3 files changed
-55

No files matched your search

-4
View File
@@ -104,10 +104,6 @@ tasks.register("build") {
tasks.register("publishAllToMavenTempLocal") {
description = "Publish all the artifacts to be available inside a Maven Local repository on /tmp."
dependsOn(":packages:react-native:ReactAndroid:publishAllPublicationsToMavenTempLocalRepository")
// We don't publish the external-artifacts to Maven Local as ci is using it via workspace.
dependsOn(
":packages:react-native:ReactAndroid:hermes-engine:publishAllPublicationsToMavenTempLocalRepository"
)
}
tasks.register("publishAndroidToSonatype") {
@@ -17,42 +17,6 @@ version =
configurations.maybeCreate("externalArtifacts")
// Those artifacts should be placed inside the `artifacts/hermes-ios-*.tar.gz` location.
val hermesiOSDebugArtifactFile: RegularFile =
layout.projectDirectory.file("artifacts/hermes-ios-debug.tar.gz")
val hermesiOSDebugArtifact: PublishArtifact =
artifacts.add("externalArtifacts", hermesiOSDebugArtifactFile) {
type = "tgz"
extension = "tar.gz"
classifier = "hermes-ios-debug"
}
val hermesiOSReleaseArtifactFile: RegularFile =
layout.projectDirectory.file("artifacts/hermes-ios-release.tar.gz")
val hermesiOSReleaseArtifact: PublishArtifact =
artifacts.add("externalArtifacts", hermesiOSReleaseArtifactFile) {
type = "tgz"
extension = "tar.gz"
classifier = "hermes-ios-release"
}
// Those artifacts should be placed inside the `artifacts/hermes-*.framework.dSYM` location
val hermesDSYMDebugArtifactFile: RegularFile =
layout.projectDirectory.file("artifacts/hermes-framework-dSYM-debug.tar.gz")
val hermesDSYMDebugArtifact: PublishArtifact =
artifacts.add("externalArtifacts", hermesDSYMDebugArtifactFile) {
type = "tgz"
extension = "tar.gz"
classifier = "hermes-framework-dSYM-debug"
}
val hermesDSYMReleaseArtifactFile: RegularFile =
layout.projectDirectory.file("artifacts/hermes-framework-dSYM-release.tar.gz")
val hermesDSYMReleaseArtifact: PublishArtifact =
artifacts.add("externalArtifacts", hermesDSYMReleaseArtifactFile) {
type = "tgz"
extension = "tar.gz"
classifier = "hermes-framework-dSYM-release"
}
// [iOS] React Native Dependencies
val reactNativeDependenciesDebugArtifactFile: RegularFile =
layout.projectDirectory.file("artifacts/ReactNativeDependenciesDebug.xcframework.tar.gz")
@@ -131,10 +95,6 @@ publishing {
publications {
getByName("release", MavenPublication::class) {
artifactId = "react-native-artifacts"
artifact(hermesiOSDebugArtifact)
artifact(hermesiOSReleaseArtifact)
artifact(hermesDSYMDebugArtifact)
artifact(hermesDSYMReleaseArtifact)
artifact(reactNativeDependenciesDebugArtifact)
artifact(reactNativeDependenciesReleaseArtifact)
artifact(reactNativeDependenciesDebugDSYMArtifact)
@@ -386,14 +386,3 @@ tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.add("-Xlint:deprecation,unchecked")
options.compilerArgs.add("-Werror")
}
/* Publishing Configuration */
apply(from = "../publish.gradle")
// We need to override the artifact ID as this project is called `hermes-engine` but
// the maven coordinates are on `hermes-android`.
// Please note that the original coordinates, `hermes-engine`, have been voided
// as they caused https://github.com/facebook/react-native/issues/35210
publishing {
publications { getByName("release", MavenPublication::class) { artifactId = "hermes-android" } }
}