Skip to content
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

Update Gradle to 6.6.1 #3

Merged
merged 2 commits into from
Sep 18, 2020

Conversation

wltan
Copy link
Member

@wltan wltan commented Sep 18, 2020

Fixes #2

The Gradle wrapper was used to update itself. The exact command used was gradlew wrapper --gradle-version=6.6.1 --distribution-type=bin.

Based on warnings generated by Gradle, I found that property archiveName is deprecated and will be removed from Gradle 7 onwards. To stay compliant with the future versions of Gradle, archiveName has been updated to archiveFileName.

Notes to reviewers:

  • Using distribution-type=all makes the upgrade work differently from distribution-type=bin. In particular, there are changes made to gradlew and gradlew.bat. I've stuck to bin as that is what the existing project has used, but it may be worth exploring whether it is recommended/necessary to use all to upgrade the gradlew scripts as well.

The current version of Gradle used in this project is 5.2.1, while the latest version available is now 6.6.1.

An upgrade is needed to support additional plugins such as Pitest (which requires Gradle 5.6).

Let us use the Gradle wrapper to upgrade itself. The exact command used is:
    gradlew wrapper --gradle-version=6.6.1 --distribution-type=bin

Gradle 6.6.1 release notes: https://docs.gradle.org/6.6.1/release-notes.html
Property archiveName is deprecated and will be removed from Gradle 7 onwards.

https://docs.gradle.org/6.6.1/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:archiveName

The deprecation warning message suggests using archiveFileName. Let us update the property from archiveName to archiveFileName to stay compliant with the future Gradle 7.
@wltan wltan requested review from ianyong and a team September 18, 2020 12:39
Copy link
Member

@ianyong ianyong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ianyong ianyong requested a review from a team September 18, 2020 13:08
@ianyong ianyong added pr::ready-to-merge ✅ priority.medium 🥈 Todo for current iteration type.task 📋 Miscellaneous tasks that aren't feature or documentation-related labels Sep 18, 2020
Copy link

@yongping827 yongping827 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.

@ianyong ianyong merged commit ca73778 into AY2021S1-CS2103T-W16-3:master Sep 18, 2020
@ianyong ianyong added this to the v1.1 milestone Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.medium 🥈 Todo for current iteration type.task 📋 Miscellaneous tasks that aren't feature or documentation-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Gradle to 6.6.1
3 participants