react-native-geolocation icon indicating copy to clipboard operation
react-native-geolocation copied to clipboard

Android Issue: Fix Groovy DSL space-assignment deprecation in Gradle

Open jatin-jamdagni opened this issue 8 months ago • 0 comments
trafficstars

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/...".

jatin-jamdagni avatar Mar 07 '25 08:03 jatin-jamdagni