fix: gradle deprecation warnings about property assignment#1821
Conversation
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.
dpogue
left a comment
There was a problem hiding this comment.
I'm guessing namespace needs the = because it's a property and compileSdkVersion doesn't because it's... not a property? And the only way to know that is to dig into gradle documentation? 😕
The changes seem fine to me, I just worry that now it looks inconsistent and it's not going to be obvious in future changes when a = is needed or not (but that's Gradle's fault, not your fault)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1821 +/- ##
==========================================
+ Coverage 72.12% 72.24% +0.11%
==========================================
Files 23 23
Lines 1844 1841 -3
==========================================
Hits 1330 1330
+ Misses 514 511 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I believe The Kotlin DSL is much more strict on this stuff, but is also much more streamlined/consistent. I think it will be pretty easy to migrate too, kotlin gradle I believe can still reference groovy gradle for extensions (like build-extras.gradle)... so might be worth considering doing in one of our major releases at some point. |
|
I was just correcting, what Gradle complained about. I'm also wondering, why some things should be properties and some not. When I look for the |
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 allshows, that some properties are assigned without an=, which will not be supported any longer with Gradle 10.0.Platforms affected
Android
Motivation and Context
Description
Testing
Checklist
(platform)if this change only applies to one platform (e.g.(android))