-
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
Gradle updates #507
Gradle updates #507
Conversation
@@ -5,7 +5,7 @@ environment: | |||
GRADLE_OPTS: -Dorg.gradle.daemon=false | |||
|
|||
# URL for SDK Tools, Revision 26.1.1 (September 2017) |
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 guess the version here is no longer correct with this change
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.
Supposedly 26.1.1 is still the latest, but the download link doesn't match what was here before 😕
appveyor.yml
Outdated
|
||
- choco install gradle --version 3.4.1 | ||
- choco install gradle --version 4.6.0 |
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.
Actually, this should install the minimum version of Gradle needed to generate the wrapper with our actually required version. At least that was true before this change.
Codecov Report
@@ Coverage Diff @@
## master #507 +/- ##
==========================================
- Coverage 62.11% 61.87% -0.25%
==========================================
Files 17 17
Lines 1985 1975 -10
Branches 371 366 -5
==========================================
- Hits 1233 1222 -11
- Misses 752 753 +1
Continue to review full report at Codecov.
|
I think you missed to replace one location with Apps builds, deploys and runs fine with that piece adjusted. |
I'm also seeing this in the sync log:
https://stackoverflow.com/questions/47300679/configuration-compile-in-is-deprecated-but-all-configurations-are-implementa says to upgrade gradle to 3.2.0, which resolves the warning for me. |
I'm also seeing
Removing https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/plugin-build.gradle#L49 resolves the warning. |
8760016
to
a36c0f8
Compare
See #508 for additional discussion around that point. |
07574ac
to
8286353
Compare
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.
Other then the one question I posted below, I feel that the changes are OK.
58f46de
to
baf09c0
Compare
} | ||
|
||
// Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties. | ||
// Refer to: http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html | ||
ext { | ||
apply from: '../CordovaLib/cordova.gradle' | ||
|
||
// The value for android.compileSdkVersion. | ||
if (!project.hasProperty('cdvCompileSdkVersion')) { | ||
cdvCompileSdkVersion = null; |
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.
Remove semicolon here (as proposed in PR #441)?
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.
What does this have to do with this PR?
} | ||
} | ||
|
||
// Allow plugins to declare Maven dependencies via build-extras.gradle. | ||
allprojects { | ||
repositories { | ||
mavenCentral(); | ||
mavenCentral() |
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.
Add google() or replace mavenCentral() with google() here, as suggested in https://github.com/apache/cordova-android/pull/441/files/478450fe4fe6a7b06e15d2b68facf0aecd63a27e#r228693626?
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.
What has #441 to do with this?
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 raised a few comments based on PR #441. Should we address these? Is this ready to be merged? |
I believe this is ready to be merged, but I'm not sure what you think it has to do with #441, which is proposing the addition of an entirely different feature. This PR is updating gradle versions for compatibility with the latest Android SDK. |
I understand that Kotlin is out of scope. But I think some suggestions in #441 should be considered since they seem to be outside the scope of adding Kotlin. |
Or should some of the suggestions be considered in yet another PR? |
jcenter() | ||
} | ||
} | ||
|
||
task wrapper(type: Wrapper) { | ||
gradleVersion = '4.4.0' | ||
gradleVersion = '4.6.0' |
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.
Any reason for not using the latest 4.10.2? It should deliver better build speeds and other benefits.
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.
Historically we've targeted the minimum required version of gradle
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.
Is there some specific reason for targeting the minimum version? I don't think that targeting older versions has benefits over targeting newer versions. Also, Gradle development between 4.6 and 4.10 greatly focused on speed
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.
(Might be worth opening a whole new issue about this thing so it doesn't get buried here)
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.
Also, as I mentioned in #596 - Since Gradle 4.9 it is possible to build App Bundle - a better way to publish apps to the Play Store.
Currently, Cordova doesn't support this and I have to manually change the app manifests after each build.
baf09c0
to
47bb518
Compare
Platforms affected
Android
What does this PR do?
google()
repo syntax to reference the Google maven repositoryIn theory, this should fix the NDK issues reported in #504 due to outdated gradle versions.
What testing has been done on this change?
Nothing yet 🙃
Checklist