Skip to content

[Bug]: Deprecated Groovy DSL syntax in force-cmake.gradle init script (Gradle 9.7.0 warning) #164

Description

@RajanCodeStudio

📝 Feature/Bug Description

During build, the following deprecation warning appears
from an internal ACSIDE init script:

Initialization script '/root/.gradle/init-scripts/force-cmake.gradle': line 7
Properties should be assigned using the 'propName = value' syntax.
Setting a property via the Gradle-generated 'propName value' or
'propName(value)' syntax in Groovy DSL has been deprecated.
This is scheduled to be removed in Gradle 10.

File: /root/.gradle/init-scripts/force-cmake.gradle
Line: 7

This is coming from ACSIDE's own internal init script,
not from the user's project code.

💡 Use Case / Impact

Right now this is just a warning and build still
succeeds fine. But since Gradle 10 will remove this
syntax completely, it will break builds in the future
if not fixed.

The fix is straightforward — line 7 in force-cmake.gradle
needs to be updated from:

version "x.x.x" (old syntax)

to:

version = "x.x.x" (new assignment syntax)

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

📎 Additional Context

Running tasks: :app:assembleDebug
Calculating task graph as configuration cache cannot be reused because init script '../../../../../root/.gradle/init-scripts/force-build-tools.gradle' and 15 more have been added.

Configure project :app
Initialization script '/root/.gradle/init-scripts/force-cmake.gradle': line 7
Properties should be assigned using the 'propName = value' syntax. Setting a property via the Gradle-generated 'propName value' or 'propName(value)' syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10. Use assignment ('version = ') instead. Consult the upgrading guide for further information: https://docs.gradle.org/9.7.0/userguide/upgrading_version_8.html#groovy_space_assignment_syntax
at force_cmake_ccpd540tjy1z47edwwre84628$_run_closure1$_closure2$_closure3$_closure4$_closure5.doCall$original(/root/.gradle/init-scripts/force-cmake.gradle:7)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
at force_cmake_ccpd540tjy1z47edwwre84628$_run_closure1$_closure2$_closure3$_closure4.doCall$original(/root/.gradle/init-scripts/force-cmake.gradle:6)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)

Task :app:preBuild UP-TO-DATE
Task :app:generateDebugAssets UP-TO-DATE
Task :app:preDebugBuild UP-TO-DATE
Task :app:javaPreCompileDebug UP-TO-DATE
Task :app:generateDebugResources UP-TO-DATE
Task :app:generateDebugGlobalSynthetics UP-TO-DATE
Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
Task :app:mapDebugSourceSetPaths UP-TO-DATE
Task :app:desugarDebugFileDependencies UP-TO-DATE
Task :app:packageDebugResources UP-TO-DATE
Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
Task :app:mergeDebugJniLibFolders UP-TO-DATE
Task :app:validateSigningDebug UP-TO-DATE
Task :app:writeDebugAppMetadata UP-TO-DATE
Task :app:extractDeepLinksDebug UP-TO-DATE
Task :app:writeDebugSigningConfigVersions UP-TO-DATE
Task :app:checkDebugAarMetadata UP-TO-DATE
Task :app:mergeDebugAssets UP-TO-DATE
Task :app:compressDebugAssets UP-TO-DATE
Task :app:mergeDebugNativeLibs UP-TO-DATE
Task :app:stripDebugDebugSymbols UP-TO-DATE
Task :app:processDebugNavigationResources UP-TO-DATE
Task :app:parseDebugLocalResources UP-TO-DATE
Task :app:generateDebugRFile UP-TO-DATE
Task :app:mergeDebugResources UP-TO-DATE
Task :app:compileDebugNavigationResources UP-TO-DATE
Task :app:processDebugMainManifest UP-TO-DATE
Task :app:processDebugManifest UP-TO-DATE
Task :app:processDebugManifestForPackage UP-TO-DATE
Task :app:checkDebugDuplicateClasses UP-TO-DATE
Task :app:mergeLibDexDebug UP-TO-DATE
Task :app:mergeExtDexDebug UP-TO-DATE
Task :app:processDebugResources UP-TO-DATE
Task :app:compileDebugKotlin UP-TO-DATE
Task :app:compileDebugJavaWithJavac NO-SOURCE
Task :app:processDebugJavaRes UP-TO-DATE
Task :app:dexBuilderDebug UP-TO-DATE
Task :app:mergeProjectDexDebug UP-TO-DATE
Task :app:mergeDebugJavaResource UP-TO-DATE
Task :app:packageDebug UP-TO-DATE
Task :app:assembleDebug UP-TO-DATE
Task :app:createDebugApkListingFileRedirect UP-TO-DATE

[Incubating] Problems report is available at: file:///storage/emulated/0/AndroidCSProjects/Only_5G_Network_mode/build/reports/problems/problems-report.html

BUILD SUCCESSFUL in 8s
36 actionable tasks: 36 up-to-date
Configuration cache entry stored.

Ready to install: app-debug.apk
Tap Install in the output panel to deploy the APK.

Triggering APK installation...

Build log attached.
Build completed successfully in 8s — this is a
warning only, not a current failure.
Device: Infinix GT 10 Pro | Android
Gradle version: 9.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions