From df36c7a2c4abc7487a10d73de4d7dc3810ad2061 Mon Sep 17 00:00:00 2001 From: Manuel Beck Date: Wed, 9 Jul 2025 05:18:02 +0200 Subject: [PATCH] fix: gradle deprecation warnings about property assignment (#1821) When building a plain Android Cordova app without plugins, there will be Gradle depraction warnings: `Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.`. Compiling it with `--warning-mode all` shows, that some properties are assigned without an `=`, which will not be supported any longer with Gradle 10.0. --- framework/build.gradle | 2 +- templates/project/app/build.gradle | 6 +++--- test/androidx/app/build.gradle | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/build.gradle b/framework/build.gradle index 02ea7e8fe..d3e3618e7 100644 --- a/framework/build.gradle +++ b/framework/build.gradle @@ -44,7 +44,7 @@ allprojects { apply plugin: 'com.android.library' android { - namespace 'org.apache.cordova' + namespace = 'org.apache.cordova' compileSdkVersion cordovaConfig.COMPILE_SDK_VERSION buildToolsVersion cordovaConfig.BUILD_TOOLS_VERSION diff --git a/templates/project/app/build.gradle b/templates/project/app/build.gradle index ec46304ce..07afa7fdc 100644 --- a/templates/project/app/build.gradle +++ b/templates/project/app/build.gradle @@ -183,10 +183,10 @@ task cdvPrintProps { } android { - namespace cordovaConfig.PACKAGE_NAMESPACE + namespace = cordovaConfig.PACKAGE_NAMESPACE buildFeatures { - buildConfig true + buildConfig = true } defaultConfig { @@ -202,7 +202,7 @@ android { } lintOptions { - abortOnError false + abortOnError = false } buildToolsVersion cordovaConfig.BUILD_TOOLS_VERSION diff --git a/test/androidx/app/build.gradle b/test/androidx/app/build.gradle index 05d93b917..837566211 100644 --- a/test/androidx/app/build.gradle +++ b/test/androidx/app/build.gradle @@ -24,7 +24,7 @@ android { compileSdkVersion cordovaConfig.COMPILE_SDK_VERSION buildToolsVersion cordovaConfig.BUILD_TOOLS_VERSION - namespace 'org.apache.cordova.unittests' + namespace = 'org.apache.cordova.unittests' defaultConfig { applicationId "org.apache.cordova.unittests"