Skip to content

Fix deprecated Groovy space-assignment syntax (removed in Gradle 10.0) #21

Description

@Besi97

Deprecation Warning

Setting properties via propName value or propName(value) syntax instead of propName = value is deprecated. Gradle auto-generates methods for this at runtime, and those generated methods will be removed.

Where

  • build.gradle:55showExceptions true
  • build.gradle:56exceptionFormat "full"
  • build.gradle:57showCauses true
  • build.gradle:58showStackTraces true
  • build.gradle:125url "..." (ivy repository)
  • plugins/gradle/graphql-java-codegen-gradle-plugin/build.gradle:8url "..." (maven repository)
  • plugins/gradle/example-client-kotlin/build.gradle:21url "..." (maven repository)

Fix

Use explicit assignment syntax:

// Before:
showExceptions true
url 'https://repo.gradle.org/gradle/libs-releases-local'

// After:
showExceptions = true
url = 'https://repo.gradle.org/gradle/libs-releases-local'

Removed in

Gradle 10.0

Resource

https://docs.gradle.org/8.14.3/userguide/upgrading_version_8.html#groovy_space_assignment_syntax

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions