Todo list if/when we drop compat for an older Gradle version
See original GitHub issueTo my knowledge, the only thing we’re sacrificing by maintaining support for 2.14 is task configuration avoidance. We do this internally already, so we don’t have much to gain from adopting it. But I figured I’d make a central place to keep track of where we’re not using the latest APIs, and other changes we can make when/if we cut ties with older versions.
-
Rename
FormatExtension.root
toext
. -
Remove
GradleProvisioner.fromProject(Project project)
(should make the whole class package-private, probably) -
Standardize win-detection
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
How to downgrade to older version of Gradle - Stack Overflow
Change your gradle version in project setting: If you are using mac,click File->Project structure,then change gradle version,here: enter ...
Read more >Compatibility Matrix - Gradle User Manual
For older Gradle versions, please see the table below which Java version is supported by which Gradle release. Table 1. Java Compatibility. Java...
Read more >Upgrading your build from Gradle 4.x to 5.0
This chapter provides the information you need to migrate your older Gradle 4.x builds to Gradle 5.0. In most cases, you will need...
Read more >Upgrading your build from Gradle 6.x to the latest
The previous step will help you identify potential problems by issuing deprecation warnings ... There are no compatible versions of Spock 1.x and...
Read more >Gradle 6.0 Release Notes
For Gradle plugin authors, we've added new APIs to make it easier to lazily connect tasks and properties together, made useful services available...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just wanted to drop you a line @fvgh and @jbduncan. I just released
lib 2.0.0
andplugin-maven 2.0.0
. The next project will be to strip all the deprecated code fromplugin-gradle
. I did a rehash of our docs, which exposed some inconsistencies, which led me to believe that we should cut some small things (namely default targets, but some other small things too).If there’s anything that I cut, which you would like to be put back, I’m 100% open to putting it back! Since we had to take a breaking change in order to fix some caching issues, and we can always add them back without a breaking change, I leaned towards “cut it” for things where I was on the fence.
I propose the following roadmap:
com.diffplug.gradle.spotless 4.x
-PspotlessFiles
, I want this available for old Gradlescom.diffplug.spotless 5.0
, release by June 1st at latestInputChanges
since the old incremental API will nag in Gradle 7 which is coming soonThe “goals” in each phase are loose. One of my top priorities personally is to not be a blocker on other people’s work, so if a good PR ready to ship then we’ll ship it, major versions be damned. But I’d like to get #511 out and available all the way back to 2.x. IMO, it removes every single excuse to not use an autoformatter, no matter what version of Gradle you might be stuck on.
I also want to minimize the
if gradleOld then blah
since we need to bump to5.4
very soon anyway. So I’m asking for a stay until June 1st at the latest. Once June 1st comes around, we’ll set Gradle 5.4 as the minimum supported, and it’ll be open season to adopt all of Gradle’s latest and greatest. If I can get #511 merged sooner, then we’ll bump minimum-required to5.4
sooner. I’ve got a prototype for #511 on my box, just wanted to get #576 merged first since it touches more things.