Skip to content

Update gradle/actions action to v4 #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 7, 2024

This PR contains the following updates:

Package Change Age
gradle/actions v3.5.0 -> v4.4.1 age

Release Notes

gradle/actions (gradle/actions)

v4.4.1

Compare Source

This patch release fixes a bug in Develocity Injection with a custom plugin repository.
The gradle-plugin-repository-* action parameters were not being correctly mapped to environment variables that are read by the Develocity Injection init script.

This issue has been fixed by setting the correct environment variables:

  • gradle-plugin-repository-url is mapped to DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_URL
  • gradle-plugin-repository-username is mapped to DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_USERNAME
  • gradle-plugin-repository-password is mapped to DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_PASSWORD

Additionally, these parameters can now be used to configure a custom plugin repository for the GitHub Dependency Graph Gradle Plugin, required for dependency submission.

What's Changed

Full Changelog: gradle/actions@v4.4.0...v4.4.1

v4.4.0

Compare Source

This release updates 2 downstream components:

  • Develocity injection has been updated to v2.0
    • Some environment variables related to Develocity injection have been renamed. All vars now being with DEVELOCITY_INJECTION_. Check the docs for more details.
  • Dependency-graph plugin has been updated to v1.4.0
    • The 'detector' values included in the generated graph can now be configured via environment variables.
What's Changed
New Contributors

Full Changelog: gradle/actions@v4.3.1...v4.4.0

v4.3.1

Compare Source

This release fixes a couple of minor issues, as well as keeping dependencies up to date.

Fixed issues
  • The develocity-allow-untrusted-server parameter should be honoured when fetching short-lived access tokens #​583
  • Build summary may incorrectly report build success #​415
What's Changed
New Contributors

Full Changelog: gradle/actions@v4.3.0...v4.3.1

v4.3.0

Compare Source

This release brings some significant improvements to cache-cleanup and dependency-submission:

  • Cleanup cache entries written by newly released Gradle versions (#​436)
  • Use existing Gradle wrapper distribution for cache-cleanup where possible (#​515)
  • Automatically save each dependency-graph that is submitted by dependency-submission (#​519)
  • Fix deprecation warnings emitted by Gradle 8.12+ when:
    • Using build-scan-publish: true or Develocity injection (#​543)
    • Using dependency-submission with an authenticated plugin repository with Gradle (#​541)
  • Fix warning when using toolchain support with Gradle 7.x (#​511)

What's Changed

New Contributors

Full Changelog: gradle/actions@v4.2.2...v4.3.0

v4.2.2

Compare Source

This patch release updates a bunch of dependency versions and fixes a deprecation warning emitted with Gradle 8.12.

What's Changed

New Contributors

Full Changelog: gradle/actions@v4.2.1...v4.2.2

v4.2.1

Compare Source

This patch release fixes some issues with Develocity and Build Scan integration:

  • Build scan links not captured in project using plugin com.gradle.enteprise:3.18.2 (#​449)
  • Enabling build-scan-publish causes some Develocity injection parameters to be ignored (#​447)
  • Setting develocity-ccud-plugin-version parameter is ignored (#​446)

What's Changed

New Contributors

Full Changelog: gradle/actions@v4.2.0...v4.2.1

v4.2.0

Compare Source

This release fixes a bug that prevents cache-cleanup from working with Gradle 8.11.
A number of improvements to cache reporting are also included.

What's Changed

Full Changelog: gradle/actions@v4.1.0...v4.2.0

v4.1.0

Compare Source

This release brings some minor improvements:

  • The latest release of Gradle is no longer required to perform cache-cleanup. If Gradle is found to on the PATH and the version meets minimum version requirements, then the version on PATH is used for cache-cleanup and Gradle is not downloaded.
  • Fixes a bug where setting the develocity-token-expiry parameter had no effect (#​381)
  • Numerous NPM dependency updates

Full Changelog: gradle/actions@v4.0.1...v4.1.0

v4.0.1

Compare Source

This patch release updates a number of dependencies, and fixes a bug that caused Gradle version '8.1' to be confused with '8.10'.

What's Changed

Full Changelog: gradle/actions@v4.0.0...v4.0.1

v4.0.0

Compare Source

Final release of v4.0.0 of the setup-gradle, dependency-submission and wrapper-validation actions provided under gradle/actions.
This release is available under the v4 tag.

Major changes from the v3 release

The arguments parameter has been removed

Using the action to execute Gradle via the arguments parameter was deprecated in v3 and this parameter has been removed.
See here for more details.

Cache cleanup enabled by default

After a number of fixes and improvements, this release enables cache-cleanup by default for all Jobs using the setup-gradle and dependency-submission actions.

Improvements and bugfixes related cache cleanup:

  • By default, cache cleanup is not run if any Gradle build fails (#​71)
  • Cache cleanup is not run after configuration-cache reuse (#​19)

This feature should help to minimize the size of entries written to the GitHub Actions cache, speeding up builds and reducing cache usage.

Wrapper validation enabled by default

In v3, the setup-gradle action was enhanced to support Gradle wrapper validation, removing the need to use a separate workflow
file with the gradle/actions/wrapper-validation action.

With this release, wrapper validation has been significantly improved, and is now enabled by default (#​12):

  • The allow-snapshot-wrappers makes it possible to validate snapshot wrapper jars using setup-gradle.
  • Checksums for nightly and snapshot Gradle versions are now validated (#​281).
  • Valid wrapper checksums are cached in Gradle User Home, reducing the need to retrieve checksum values remotely (#​172).
  • Reduce network calls in wrapper-validation for new Gradle versions: By only fetching wrapper checksums for Gradle versions that were not known when this action was released, this release reduces the likelihood that a network failure could cause failure in wrapper validation (#​171)
  • Improved error message when wrapper-validation finds no wrapper jars (#​284)

Wrapper validation is important for supply-chain integrity. Enabling this feature by default will increase the coverage of wrapper
validation on projects using GitHub Actions.

New input parameters for Dependency Graph generation

Some dependency-graph inputs that could previously only be configured via environment variables now have dedicated action inputs:

Other improvements
  • In Job summary, the action now provides an explanation when cache is set to read-only or disabled (#​255)
  • When setup-gradle requests a specific Gradle version, the action will no longer download and install that version if it is already available on the PATH of the runner (#​270)
  • To attempt to speed up builds, the setup-gradle and dependency-submission actions now attempt to use the D: drive for Gradle User Home if it is available (#​290)

Deprecations and breaking changes

Changelog

Full Changelog: gradle/actions@v3.5.0...v4.0.0


  • If you want to rebase/retry this PR, check this box

🔕 Ignore: Close this PR and you won't be reminded about these updates again.

@renovate renovate bot added the dependencies label Aug 7, 2024
@renovate renovate bot requested a review from hoc081098 August 7, 2024 17:54
@renovate renovate bot force-pushed the renovate/gradle-actions-4.x branch from 9446b17 to d551eec Compare August 26, 2024 21:49
@renovate renovate bot force-pushed the renovate/gradle-actions-4.x branch from d551eec to 8e52383 Compare September 13, 2024 04:57
@renovate renovate bot force-pushed the renovate/gradle-actions-4.x branch 2 times, most recently from 3bdaa2b to 0d4cbc3 Compare November 18, 2024 18:47
@renovate renovate bot force-pushed the renovate/gradle-actions-4.x branch from 0d4cbc3 to 5cffe4c Compare December 18, 2024 04:38
@renovate renovate bot force-pushed the renovate/gradle-actions-4.x branch from 5cffe4c to 96ce59c Compare January 30, 2025 20:07
@renovate renovate bot force-pushed the renovate/gradle-actions-4.x branch from 96ce59c to 6d8881f Compare March 26, 2025 01:24
@renovate renovate bot force-pushed the renovate/gradle-actions-4.x branch from 6d8881f to 355c0c8 Compare May 16, 2025 17:50
@renovate renovate bot force-pushed the renovate/gradle-actions-4.x branch from 355c0c8 to 48f5cda Compare June 12, 2025 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant