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

[#1661] Upgrade to Gradle 7 #1780

Merged
merged 5 commits into from
Jul 22, 2022

Conversation

yhtMinceraft1010X
Copy link
Contributor

@yhtMinceraft1010X yhtMinceraft1010X commented May 18, 2022

Fixes #1661

Proposed commit message

The Liferay plugin has recently been updated with annotations for
Gradle 7. As Gradle 7 is now available for use, this also means that the
Shadow plugin can be updated to the latest version.

There are some deprecated features that will be removed in a future
Gradle 8 release. These include an implicit dependency between
processResources and zipReport and the change from Report.enabled to
Report.required.

The processSystemtestResources task fails because Gradle 7 requires a
duplicatesStrategy to be defined for the task, which is of the Copy
type.

Let's upgrade to Gradle 7, update the relevant plugins and fix the
duplicatesStrategy error as well as deprecations related to Gradle 8.

Other information

Discussion about duplicatesStrategy: gradle/gradle#17236

⚠️ Requires #1776 to be merged first so that the CI can be properly checked.

The Liferay plugin has recently been updated with annotations for
Gradle 7. As Gradle 7 is now available for use, this also means that
the Shadow plugin can be updated to the latest version.

There are some deprecated features that will be removed in a future
Gradle 8 release. These include an implicit dependency between
processResources and zipReport and the change from Report.enabled to
Report.required.

The processSystemtestResources task fails because Gradle 7 requires
a duplicatesStrategy to be defined for the task, which is of the Copy
type.

Let's upgrade to Gradle 7, update the relevant plugins and fix the
duplicatesStrategy error as well as deprecations related to Gradle 8.
Gradle 7.4.2 supports all JDK versions from 8 to 17. However, Java 18
is not yet supported.

Let's update the DG prerequisite for JDK version.
@dcshzj
Copy link
Member

dcshzj commented Jul 11, 2022

@yhtMinceraft1010X Does gradlew.bat need to be updated as well?

@yhtMinceraft1010X
Copy link
Contributor Author

I tried running gradlew wrapper --gradle-version 7.4.2 again. There seems to be no updates for gradlew.bat.

Copy link
Member

@dcshzj dcshzj left a comment

Choose a reason for hiding this comment

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

LGTM! Great job, especially with the issue created upstream and the pull request you have submitted.

@dcshzj dcshzj merged commit 11421c8 into reposense:master Jul 22, 2022
@github-actions
Copy link
Contributor

The following links are for previewing this pull request:

@yhtMinceraft1010X yhtMinceraft1010X deleted the 1661-upgrade-gradle branch July 25, 2022 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Gradle to at least 7.3
2 participants