Skip to content

Conversation

jatin-jamdagni
Copy link

Fix Deprecated Space-Assignment Syntax in Gradle Build Script

Problem

Gradle 8.x introduced a deprecation warning for space-assignment syntax in build.gradle files. The following usage is now deprecated and will be removed in Gradle 10:

Old (Deprecated Usage)

maven {
    url "$rootDir/../node_modules/@react-native-community/geolocation/android"
 

New (Updated Syntax)

maven {
    url = "$rootDir/../node_modules/@react-native-community/geolocation/android"
}

Why This Change?

  • Gradle now requires explicit assignment (property = value) instead of space-separated syntax.
  • This prevents future build failures when upgrading to Gradle 10.
  • The change follows Gradle's official migration guide:

Changes in This PR

  • Updated build.gradle inside the android folder to replace deprecated url "$rootDir/..." with url = "$rootDir/...".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant