Skip to content

Commit 11947d6

Browse files
Jakub Piaseckimeta-codesync[bot]
authored andcommitted
Don't publish Hermes artifacts from the React Native Repository
Summary: Changelog: [Internal] Differential Revision: D83137498
1 parent db0e50c commit 11947d6

File tree

3 files changed

+0
-55
lines changed

3 files changed

+0
-55
lines changed

build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ tasks.register("build") {
104104
tasks.register("publishAllToMavenTempLocal") {
105105
description = "Publish all the artifacts to be available inside a Maven Local repository on /tmp."
106106
dependsOn(":packages:react-native:ReactAndroid:publishAllPublicationsToMavenTempLocalRepository")
107-
// We don't publish the external-artifacts to Maven Local as ci is using it via workspace.
108-
dependsOn(
109-
":packages:react-native:ReactAndroid:hermes-engine:publishAllPublicationsToMavenTempLocalRepository"
110-
)
111107
}
112108

113109
tasks.register("publishAndroidToSonatype") {

packages/react-native/ReactAndroid/external-artifacts/build.gradle.kts

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,6 @@ version =
1717

1818
configurations.maybeCreate("externalArtifacts")
1919

20-
// Those artifacts should be placed inside the `artifacts/hermes-ios-*.tar.gz` location.
21-
val hermesiOSDebugArtifactFile: RegularFile =
22-
layout.projectDirectory.file("artifacts/hermes-ios-debug.tar.gz")
23-
val hermesiOSDebugArtifact: PublishArtifact =
24-
artifacts.add("externalArtifacts", hermesiOSDebugArtifactFile) {
25-
type = "tgz"
26-
extension = "tar.gz"
27-
classifier = "hermes-ios-debug"
28-
}
29-
val hermesiOSReleaseArtifactFile: RegularFile =
30-
layout.projectDirectory.file("artifacts/hermes-ios-release.tar.gz")
31-
val hermesiOSReleaseArtifact: PublishArtifact =
32-
artifacts.add("externalArtifacts", hermesiOSReleaseArtifactFile) {
33-
type = "tgz"
34-
extension = "tar.gz"
35-
classifier = "hermes-ios-release"
36-
}
37-
38-
// Those artifacts should be placed inside the `artifacts/hermes-*.framework.dSYM` location
39-
val hermesDSYMDebugArtifactFile: RegularFile =
40-
layout.projectDirectory.file("artifacts/hermes-framework-dSYM-debug.tar.gz")
41-
val hermesDSYMDebugArtifact: PublishArtifact =
42-
artifacts.add("externalArtifacts", hermesDSYMDebugArtifactFile) {
43-
type = "tgz"
44-
extension = "tar.gz"
45-
classifier = "hermes-framework-dSYM-debug"
46-
}
47-
val hermesDSYMReleaseArtifactFile: RegularFile =
48-
layout.projectDirectory.file("artifacts/hermes-framework-dSYM-release.tar.gz")
49-
val hermesDSYMReleaseArtifact: PublishArtifact =
50-
artifacts.add("externalArtifacts", hermesDSYMReleaseArtifactFile) {
51-
type = "tgz"
52-
extension = "tar.gz"
53-
classifier = "hermes-framework-dSYM-release"
54-
}
55-
5620
// [iOS] React Native Dependencies
5721
val reactNativeDependenciesDebugArtifactFile: RegularFile =
5822
layout.projectDirectory.file("artifacts/ReactNativeDependenciesDebug.xcframework.tar.gz")
@@ -131,10 +95,6 @@ publishing {
13195
publications {
13296
getByName("release", MavenPublication::class) {
13397
artifactId = "react-native-artifacts"
134-
artifact(hermesiOSDebugArtifact)
135-
artifact(hermesiOSReleaseArtifact)
136-
artifact(hermesDSYMDebugArtifact)
137-
artifact(hermesDSYMReleaseArtifact)
13898
artifact(reactNativeDependenciesDebugArtifact)
13999
artifact(reactNativeDependenciesReleaseArtifact)
140100
artifact(reactNativeDependenciesDebugDSYMArtifact)

packages/react-native/ReactAndroid/hermes-engine/build.gradle.kts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,3 @@ tasks.withType<JavaCompile>().configureEach {
386386
options.compilerArgs.add("-Xlint:deprecation,unchecked")
387387
options.compilerArgs.add("-Werror")
388388
}
389-
390-
/* Publishing Configuration */
391-
apply(from = "../publish.gradle")
392-
393-
// We need to override the artifact ID as this project is called `hermes-engine` but
394-
// the maven coordinates are on `hermes-android`.
395-
// Please note that the original coordinates, `hermes-engine`, have been voided
396-
// as they caused https://github.com/facebook/react-native/issues/35210
397-
publishing {
398-
publications { getByName("release", MavenPublication::class) { artifactId = "hermes-android" } }
399-
}

0 commit comments

Comments
 (0)