Giter Site home page Giter Site logo

Comments (3)

bigdaz avatar bigdaz commented on June 19, 2024

Thanks for the report: you're assessment is correct. Currently the gradle-build-action can only save/restore wrapper downloads that are located in the default location. Are you setting only distributionPath or are you also specifying distributionBase in gradle-wrapper.properties?

You can configure the action to save/restore more directories inside the Gradle User Home directory, but there's no way to tell the action to save/restore directories outside of the Gradle User Home.

As a workaround:

  • If your wrapper dists are located in a different location in Gradle User Home, you could configure gradle-home-cache-includes with the extra location.
  • If your wrapper dists are located outside of Gradle User Home, then you could setup caching of this directory with actions/cache

from actions.

cloudshiftchris avatar cloudshiftchris commented on June 19, 2024

Thanks for the info.

Use case is separating our custom Gradle distributions from standard distributions to aid in install / maintenance.

e.g.
distributionPath=wrapper/my-dists

...within the GRADLE_USER_HOME distributionBase.

Is there specific cache logic for wrapper/dists that wouldn't be applied using a generic gradle-home-cache-includes?

from actions.

bigdaz avatar bigdaz commented on June 19, 2024

Is there specific cache logic for wrapper/dists that wouldn't be applied using a generic gradle-home-cache-includes?

Yes, the Gradle wrapper distributions are saved and restored independently of the rest of the Gradle User Home, with the aim to increase sharing between different projects/builds using the same Gradle version.

Another option you have to workaround this limitation is to fork the action and add your custom distribution base here: https://github.com/gradle/gradle-build-action/blob/main/src/cache-extract-entries.ts#LL341C32-L341C32. Note that you'll need to run npm run build to regenerate the transpiled sources.

from actions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.