-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[major] feat: Gradle 6.5 & Android Gradle plugin 4.0.0 updates #988
[major] feat: Gradle 6.5 & Android Gradle plugin 4.0.0 updates #988
Conversation
Codecov Report
@@ Coverage Diff @@
## master #988 +/- ##
=======================================
Coverage 68.11% 68.11%
=======================================
Files 21 21
Lines 1866 1866
=======================================
Hits 1271 1271
Misses 595 595
Continue to review full report at Codecov.
|
Should also update the two gradle wrapper files in the tests at: https://github.com/apache/cordova-android/blob/master/test/android/wrapper.gradle Also their respective |
@breautek Could you please check this message when I build my app? Does this message normal ? Please note that the following is insatlled in my pc:
Thanks |
Yes, that's normal. Gradle always appear to have deprecation warnings, but if you use gradle directly with the stacktrace flag, then you'll see that the faulting code comes from gradle itself. |
Thanks for the clarification |
I was actually wondering why keep updating those 2 files while
The following spec & test From a search I did also find I would definitely be happy to update the test Gradle files if needed, just wanted to understand what we should be keeping up-to-date and if there is anything we should not be supporting any longer. |
The
The test gradle files should be kept in sync, otherwise the unit tests won't be ran under the same configuration as the runtime when the project is installed. |
I tried copying the updated Gradle files, now leads to a build error. Any ideas? |
f212884
to
ae3d873
Compare
I have updated the test Gradle files as requested. There seems to be quite a major difference between the template Gradle files and test Gradle files, and I hope this can be fixed someday. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be updated to 6.5
as well
cordova-android/bin/templates/project/app/build.gradle
Lines 91 to 93 in 287bfcb
task wrapper(type: Wrapper) { | |
gradleVersion = '6.1' | |
} |
(Eventually I want to create some sort of script that will change all these versions in different places automatically for us...)
Merging now, thanks to @breautek for the quick reviews! |
Platforms affected
Android
Motivation and Context
build.gradle
I think it would be ideal if we could make this update before shipping the new major 9.0.0 release.
Description
build.gradle
files as suggested by Android Studio 4.0:bin/templates/project/app/build.gradle
bin/templates/project/build.gradle
framework/build.gradle
Note that this proposal would effectively overwrite some or all changes from the following PRs:
/cc @erisu @breautek
Testing
Checklist
Commit is prefixed with(platform)
if this change only applies to one platform (e.g.(android)
)If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)I've updated the documentation if necessary