Skip to content

E:\beforesuccess5\node_modules\@react-native\gradle-plugin #54761

@Magedmahe

Description

@Magedmahe

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch @react-native/gradle-plugin@0.72.11 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@react-native/gradle-plugin/build.gradle.kts b/node_modules/@react-native/gradle-plugin/build.gradle.kts
index aba3649..0eafb73 100644
--- a/node_modules/@react-native/gradle-plugin/build.gradle.kts
+++ b/node_modules/@react-native/gradle-plugin/build.gradle.kts
@@ -1,4 +1,4 @@
-/*
+/*
  * Copyright (c) Meta Platforms, Inc. and affiliates.
  *
  * This source code is licensed under the MIT license found in the
@@ -7,7 +7,6 @@
 
 import org.gradle.api.internal.classpath.ModuleRegistry
 import org.gradle.api.tasks.testing.logging.TestExceptionFormat

 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
 
 plugins {
@@ -39,14 +38,15 @@ dependencies {
   implementation("com.squareup:javapoet:1.13.0")
 
   testImplementation("junit:junit:4.13.2")
-
+/* 
   testRuntimeOnly(
       files(
-          serviceOf<ModuleRegistry>()
               .getModule("gradle-tooling-api-builders")
               .classpath
               .asFiles
               .first()))
+*/
+
 }
 
 java {

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions