Skip to content

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

Open
jatin-jamdagni wants to merge 1 commit into
michalchudziak:masterfrom
jatin-jamdagni:fix-groovy-dsl-deprecation
Open

Android Issue: Fix Groovy DSL space-assignment deprecation in Gradle#356
jatin-jamdagni wants to merge 1 commit into
michalchudziak:masterfrom
jatin-jamdagni:fix-groovy-dsl-deprecation

Conversation

@jatin-jamdagni

Copy link
Copy Markdown

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