Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-21966

Update the gradle pre-defined cache to use GRADLE_USER_HOME environment variable

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Currently, the pre-defined Gradle cache points to the directory ~/.gradle/caches .

      It would be great if the pre-defined cache location was updated to ${GRADLE_USER_HOME:-}/.gradle/caches so it first looks for the environment variables GRADLE_USER_HOME, and if that variable does not exist in the environment, it defaults to the user's home directory ** (as it's currently doing today).

      Currently the users have to create a custom cache location to implement the above :

      caches:
        # Override bitbucket defined cache to be more accurate
        gradle: ${GRADLE_USER_HOME:-~}/.gradle/caches 

      Attachments

        Activity

          People

            Unassigned Unassigned
            641e77b2eb21 Patrik S
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: