Skip to content

Bump the min Gradle and Java requirements to 7.3 and 17 #2540

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Goooler
Copy link
Member

@Goooler Goooler commented Jul 2, 2025

No description provided.

@nedtwigg
Copy link
Member

nedtwigg commented Jul 2, 2025

@Goooler
Copy link
Member Author

Goooler commented Jul 2, 2025

Will finish this later.

@Goooler Goooler force-pushed the g/20250702/gradle-9 branch 4 times, most recently from cfe3e40 to 7def050 Compare July 3, 2025 13:42
@Goooler Goooler changed the title Bump Gradle to 9.0.0-rc-1 Bump the min Gradle requirement to 7.1 and test on Gradle 9.0.0-rc-1 Jul 3, 2025
@Goooler Goooler force-pushed the g/20250702/gradle-9 branch 2 times, most recently from d94d9c2 to 70d0787 Compare July 3, 2025 14:18
@Goooler Goooler requested a review from Copilot July 3, 2025 14:30
Copilot

This comment was marked as outdated.

@Goooler Goooler marked this pull request as ready for review July 3, 2025 14:33
@Goooler
Copy link
Member Author

Goooler commented Jul 3, 2025

This is a significant change; the next Gradle plugin release should be 7.1 or another minor version.

@Goooler Goooler changed the title Bump the min Gradle requirement to 7.1 and test on Gradle 9.0.0-rc-1 Bump the min Gradle requirement to 7.1 and test on 9.0.0-rc-1 Jul 4, 2025
@nedtwigg
Copy link
Member

nedtwigg commented Jul 7, 2025

Amazing! Bumping to Gradle 7.1 indeed brings some great benefits. We get even more if we bump from Java 11 to 17, and if we do that bump then we will require Gradle 7.3 because it is the first version of Gradle which supports Java 17

Whatever path we choose, this PR is a great starting point. But my first instinct is that we should keep our current compat (Java 11 and Gradle 6.1.1) and then go straight to Java 17 and Gradle 7.3. Does that make sense, or is there a reason to retain support for Gradle 7.1 that I am missing?

@Goooler Goooler force-pushed the g/20250702/gradle-9 branch from 254896e to 3b66bf0 Compare July 8, 2025 01:23
@Goooler
Copy link
Member Author

Goooler commented Jul 8, 2025

I'm fine with dropping Java 11 support.

@Goooler Goooler force-pushed the g/20250702/gradle-9 branch from d3e013e to 62973f7 Compare July 8, 2025 01:53
@Goooler Goooler changed the title Bump the min Gradle requirement to 7.1 and test on 9.0.0-rc-1 Bump the min Gradle and Java requirements to 7.3 and 17 Jul 8, 2025
Comment on lines 44 to 45
@EnabledForJreRange(max = JAVA_15) // google-java-format requires JRE 11+
void behavior18() throws Exception {
Copy link
Member Author

Choose a reason for hiding this comment

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

com.diffplug.spotless.Lint$ShortcutException: You are running Spotless on JVM 23. This requires google-java-format of at least 1.17.0 (you are using 1.8).

This is strange.

@Goooler Goooler force-pushed the g/20250702/gradle-9 branch from 62973f7 to 2285d03 Compare July 8, 2025 02:10
@Goooler Goooler force-pushed the g/20250702/gradle-9 branch from 2285d03 to a410746 Compare July 8, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants