Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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