Skip to content

Releases: gradle/actions

v3.4.2

17 Jun 18:32
Compare
Choose a tag to compare

This patch release fixes a race condition that resulted in the DEVELOCITY_ACCESS_KEY variable not being set in the environment.

What's Changed

  • Fix race condition with fetching short lived token by @alextu in #260

Full Changelog: v3.4.1...v3.4.2

v3.4.1

15 Jun 03:32
Compare
Choose a tag to compare

This patch release fixes a bug introduced in v3.4.0, that prevents build scan publication to Develocity.
The bug results in the removal of the DEVELOCITY_ACCESS_KEY variable being removed, so that Gradle cannot authenticate with the Develocity server.

What's Changed

  • Don't clear access key when access token cannot be obtained by @cdsap in #258
  • Simplify requesting short-lived Develocity access tokens by @bigdaz in #259

Full Changelog: v3.4.0...v3.4.1

v3.4.0

13 Jun 20:53
Compare
Choose a tag to compare

This release improves the integration with Gradle Develocity®, as well as updating a number of key dependencies.

  • The new develocity-access-key input parameter allows the action to generate a short-lived access token for subsequent
    communication with Develocity. This reduces the risk of the full (long-lived) access key being compromised,
    either accidentally or by a malicious action.
  • New input parameters are available to configure Develocity injection. Previously Develocity injection could only be
    enabled by setting environment variables.
  • Checksums for Gradle 8.8 are now included, so that no network request is required for wrapper-validation with Gradle 8.8 wrappers.

What's Changed

  • Add support for short-lived tokens by @alextu in #224
  • Update known wrapper checksums by @github-actions in #240
  • Update to Gradle 8.8 by @bigdaz in #251
  • Adding Develocity input actions by @cdsap in #244
  • Fail on invalid boolean for Develocity inputs by @bigdaz in #252

New Contributors

Full Changelog: v3.3.2...v3.4.0

v3.3.2

25 Apr 20:46
Compare
Choose a tag to compare

This patch release fixes a bug in both dependency-submission and setup-gradle (#196 introduced in v3.3.1), which resulted in
"No dependency-graph files found to submit" when using the download-and-submit function.
A number of other minor issues have also been addressed:

What's Changed

  • [dependency-submission] Fix bug finding dependency-graph files with 'download-and-submit' (#199)
  • [dependency-submission] Use Gradle logger instead of println in dependency graph init script (#191 from @aleksandrserbin)
  • [dependency-submission] Retain and log full stacktrace for dependency submission errors (#192)
  • [setup-gradle] Improve build scan badge readability with long task names (#200 from @gabrielfeo)

Full Changelog: v3.3.1...v3.3.2

v3.3.1

18 Apr 19:49
Compare
Choose a tag to compare

This patch release fixes a bug in setting the report dir for dependency-submission, and updates the plugin versions
applied in Develocity injection.

What's Changed

  • Bump Develocity and CCUD plugin versions (#185)
  • Support custom DEPENDENCY_GRAPH_REPORT_DIR variable for dependency-submission (#188)

Full Changelog: v3.3.0...v3.3.1

v3.3.0

12 Apr 19:56
Compare
Choose a tag to compare

This release includes a new action, and improvements to the existing actions.

Highlights include:

Important

The caching protocol version has changed in this release, so cache entries written with previous versions of the action will not be reused. This means that jobs will effectively start with an empty cache after switching to this release.

Changelog

NEW action gradle/actions/wrapper-validation

  • [NEW] Add replacement for wrapper-validation-action (#160)

Improvements to gradle/actions/setup-gradle

  • [NEW] Cache paths have been updated for Gradle 8.6+ (#45, #163)
  • [NEW] setup-gradle action can now perform wrapper-validation automatically (#161, #162)
  • [FIX] Make cache-keys more consistent (#131).
  • [FIX] Avoid listing old build results in Job Summary on self-hosted runner (#127)
  • [FIX] Deprecation warnings are emitted when using deprecated inputs (#108)
  • [FIX] Generate correct toolchains.xml file on ARM runners (#89)

Improvements to gradle/actions/depenency-submission

  • [NEW] Action is now implemented directly in TypeScript, and does not delegate to setup-gradle (#116)
  • [NEW] Allow dependency resolution task name to be specified (#125)
  • [NEW] Dependency-graph is submitted immediately with dependency-submission action (#123)
  • [FIX] setup-gradle and dependency-submission can be used in the same Job (#36)

Full Changelog: v3.2.1...v3.3.0

Actions Summary

Release includes v3.3.0 of the following, available under the v3 version tag:

Note

The gradle/actions/setup-gradle action supersedes gradle/gradle-build-action.
The gradle/actions/wrapper-validation action supersedes gradle/wrapper-validation-action.

v3.2.1

08 Apr 18:23
Compare
Choose a tag to compare

The recent update to use com.develocity.gradle plugin resulted in many deprecation warnings being triggered by the init-scripts bundled with this action. This patch release updates these init-scripts to avoid these deprecation warnings.

What's Changed

  • Fix Develocity deprecation warnings in v3.2.1 (#126) by #129

Full Changelog: v3.2.0...v3.2.1

v3.2.0

04 Apr 18:57
e24011a
Compare
Choose a tag to compare

Changelog

General improvements

  • [NEW] Support authentication for plugin repositories (#31)
  • [FIX] Improve rendering of build results table with long values (#35)

Improvements to Dependency Submission

  • [FIX] Do not attempt to resolve dependency configurations that are excluded via env var (#107)

Improvements to Develocity injection

  • [NEW] Use com.develocity.gradle plugin version 3.17 by default
  • [NEW] Can configure capture of file-fingerprint (#58)
  • [FIX] Reduce log-level of messages emitted by Develocity injection (#60)

Note

Release includes v3.2.0 of gradle/actions/setup-gradle and gradle/actions/dependency-submission.
Available under the v3 version tag.

The gradle/actions/setup-gradle action supersedes gradle/gradle-build-action.
The gradle/[email protected] version will be released in parallel, and will delegate to this release of gradle/actions/setup-gradle.

Full Changelog: v3.1.0...v3.2.0

v3.1.0

13 Feb 20:31
417ae3c
Compare
Choose a tag to compare

This release provides more Gradle output when running with actions debug logging, and fixes some minor issues with gradle/actions/dependency-submission.

Changelog

  • [NEW] Support ACTIONS_STEP_DEBUG mode (#6)
  • [NEW] Provide link to GitHub job in generated PR comment (#11)
  • [NEW] Report source of dependency in dependency-graph via debug logging (#44)
  • [FIX] Unknown command-line option '--dependency-verification' with Gradle 5.6 (#15)
  • [FIX] Dependency submission action should handle non-executable gradlew script (#17)
  • [FIX] Dependency submission fails when project isolation is enabled (#39)
  • [FIX] Incomplete dependency-graph is submitted on build failure (#43)

Full changelog: v3.0.0...v3.1.0

Note

Release includes v3.1.0 of gradle/actions/setup-gradle and gradle/actions/dependency-submission.
Available under the v3 version tag.

The gradle/actions/setup-gradle action supersedes gradle/gradle-build-action.
The gradle/[email protected] version will be released in parallel, and will delegate to this release of gradle/actions/setup-gradle.

v3.0.0

31 Jan 11:15
ec92e82
Compare
Choose a tag to compare

Release includes v3.0.0 of gradle/actions/setup-gradle and gradle/actions/dependency-submission.
This is the first available under the v3 version tag.

The gradle/actions/setup-gradle action supersedes gradle/gradle-build-action.
The gradle/[email protected] version will be released in parallel, and will delegate to this release of gradle/actions/setup-gradle.

Changes from gradle-build-action@v2

This release brings some useful and much requested features, including:

  • save and restore the Gradle configuration-cache data
  • add the Job summary content as a PR comment
  • easily publish Build Scans® to the free Gradle Build Scan service
  • compatibility with Node 20

The only major breaking change from [email protected] is the update to require a Node 20 runtime environment.
Aside from that change, this release should generally serve as a drop-in replacement for gradle-build-action@v2.

Changelog

  • [NEW] - Run with NodeJs 20.x (gradle/gradle-build-action#946)
  • [NEW] - Support for save & restore of configuration-cache data (gradle/gradle-build-action#966)
  • [NEW] - Support for automatic adding PR comment with Job Summary content (gradle/gradle-build-action#1020)
  • [NEW] - Make it easy to publish a Build Scan® to https://scans.gradle.com (gradle/gradle-build-action#1044)
  • [NEW] - Added dependency-graph-continue-on-failure input, which can be set to false to force the Job to fail when dependency graph submission fails (gradle/gradle-build-action#1036). Failure modes include:
  • [NEW] - Add dependency-graph: clear option to clear any dependency-graph previously submitted by the job
  • [FIX] Allow cache entries to be reused by jobs with the same ID in different workflows (gradle/gradle-build-action#1017)
    • Workflow name remains part of the cache key, but cache entries generated by the same job id in a different workflow may be restored
  • [FIX] Register pre-installed JDKs in Maven toolchains.xml file (gradle/gradle-build-action#1024)
    • This allows pre-installed JDKs to be auto-detected by Gradle Toolchain support on Windows
  • [FIX] - Update the Gradle Enterprise injection configuration for product rename to Develocity (gradle/gradle-build-action#995)
  • [FIX] - Avoid submitting an empty dependency graph when state is loaded from configuration-cache
  • [FIX] - Update to GitHub Dependency Graph Gradle Plugin v1.2.0
  • [DEPRECATION] - Deprecation of the arguments parameter (gradle/gradle-build-action#996)
  • [BREAKING CHANGE] - Remove the gradle-executable input parameter. Use a separate workflow Step to execute a Gradle from a custom location.