Skip to content

Document minimum supported Gradle version #348

@AppearamidGuy

Description

@AppearamidGuy

tl;dr: based on some basic testing, plugin works with Gradle 7.6+ and with 5.0-6.5.1. Also see the last paragraph

I started investigating this to better understand how difficult it would be to support configuration cache. However it might be also useful in the context of jeremylong/DependencyCheck#5791.

All test were performed with plugin version 8.3.1 and a basic java project.

The plugin is actually very backwards compatible and the earliest version of Gradle where the plugin applies successfully is 3.3 (released Jan 2017!). But the first version that can run tasks is 5.0 as it's the first version with Groovy >= 2.5.0. Earlier plugin versions (8.0.1 and below) actually can run with Gradle 3.3+, but 8.0.2+ can't. Finally, plugin can't be applied in Gradle versions 6.6-7.5.1 because of java version in jackson.

Declaring 7.6 as minimum supported Gradle version can be reasonable considering that 7.x is in maintenance only mode and it's the first version where plugin actually works. It is definitely enough to support configuration caching and also has some nice features like "Using dependency resolution results as task inputs" which should help with #100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions