Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Action should use existing Gradle wrapper distributions for cache-cleanup where possible #515

@stefan-rademacher-tk

Description

@stefan-rademacher-tk

Hi.

We are using the setup-gradle action with the default configuration 'gradle-version: wrapper'.

In the section ‘Post Setup Gradle’, the action tries to download Gradle 8.11 from services.gradle.org, even though we have a Gradle Wrapper configuration with Gradle 8.10.2 (from an on-premise webserver) configured:

Provision Gradle >= 8.11
Gradle distribution 8.11 not found in cache. Will download. 
Downloaded https://services.gradle.org/distributions/gradle-8.11-bin.zip to /__w/_temp/.gradle-actions/gradle-installations/downloads/gradle-8.11-bin.zip (size 136917193)
…

This doesn't work in our corporate network, since the proxy slows down the download drastically.

Would be nice, if ...

  1. ...either the Gradle Wrapper configuration could be found and reused for cache cleanup
  2. ...or the download URL would be configurable.

The first option seems more appealing to me.

This issue is related to #436.

Thank you, Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions