You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by jc...@apache.org on 2021/05/10 12:06:23 UTC

[cordova-android] 01/01: feat: Upgrade gradle to 7.0

This is an automated email from the ASF dual-hosted git repository.

jcesarmobile pushed a commit to branch gradle-7
in repository https://gitbox.apache.org/repos/asf/cordova-android.git

commit 48204193296cf8d6bae44e3f614a3d2f7cf6f6e7
Author: jcesarmobile <jc...@gmail.com>
AuthorDate: Mon May 10 14:06:06 2021 +0200

    feat: Upgrade gradle to 7.0
---
 bin/templates/cordova/lib/builders/ProjectBuilder.js | 2 +-
 bin/templates/project/app/build.gradle               | 2 +-
 test/androidx/wrapper.gradle                         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/templates/cordova/lib/builders/ProjectBuilder.js b/bin/templates/cordova/lib/builders/ProjectBuilder.js
index f4be4ae..71173bf 100644
--- a/bin/templates/cordova/lib/builders/ProjectBuilder.js
+++ b/bin/templates/cordova/lib/builders/ProjectBuilder.js
@@ -268,7 +268,7 @@ class ProjectBuilder {
                 // update/set the distributionUrl in the gradle-wrapper.properties
                 const gradleWrapperPropertiesPath = path.join(self.root, 'gradle/wrapper/gradle-wrapper.properties');
                 const gradleWrapperProperties = createEditor(gradleWrapperPropertiesPath);
-                const distributionUrl = process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL || 'https://services.gradle.org/distributions/gradle-6.8.3-all.zip';
+                const distributionUrl = process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL || 'https://services.gradle.org/distributions/gradle-7.0-all.zip';
                 gradleWrapperProperties.set('distributionUrl', distributionUrl);
                 gradleWrapperProperties.save();
 
diff --git a/bin/templates/project/app/build.gradle b/bin/templates/project/app/build.gradle
index 74996e2..834ac0b 100644
--- a/bin/templates/project/app/build.gradle
+++ b/bin/templates/project/app/build.gradle
@@ -84,7 +84,7 @@ allprojects {
 }
 
 task wrapper(type: Wrapper) {
-    gradleVersion = '6.8.3'
+    gradleVersion = '7.0'
 }
 
 // Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties.
diff --git a/test/androidx/wrapper.gradle b/test/androidx/wrapper.gradle
index 80394fa..2e9e534 100644
--- a/test/androidx/wrapper.gradle
+++ b/test/androidx/wrapper.gradle
@@ -17,5 +17,5 @@
 */
 
 wrapper {
-    gradleVersion = '6.8.3'
+    gradleVersion = '7.0'
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org