Commit Graph
100 Commits
Author SHA1 Message Date
daz ff3f4cfbf8 Build outputs 2023-08-19 20:14:11 -06:00
daz a07019c726 Inform Gradle where to locate pre-installed JDKs 2023-08-19 20:14:11 -06:00
daz b17d107b8c Add test for detection of java toolchains 2023-08-19 20:14:11 -06:00
daz 12dcfaa735 Bump to the latest Foojay resolver 2023-08-19 17:24:51 -06:00
Daz DeBoerandGitHub 9fb6114fb4 Merge pull request #854 from gradle/dd/existing-gradle-home
- Report the cache as disabled when Gradle User Home exists #434 
- Allow cache restore over pre-existing Gradle User Home #480
2023-08-19 22:27:30 +02:00
daz 50d07aa0e5 Build outputs 2023-08-19 13:37:53 -06:00
daz 3d49588efc Allow cache to overwrite existing Gradle User Home
Fixes #480
2023-08-19 13:37:53 -06:00
daz 68e1dcdea4 Report the cache as disabled when Gradle User Home exists
Fixes #434
2023-08-19 13:37:49 -06:00
daz 8cade330d4 Include provisioned Gradle version as action output
Fixes #259
2023-08-19 20:37:12 +02:00
daz 124cb765ee Update to Gradle 8.3 2023-08-19 10:32:05 -06:00
Daz DeBoerandGitHub 243af859f8 Improve and extend documentation for dependency-graph generation (#851)
* Improve documentation for dependency-graph generation

Fixes #849
Fixes #843
2023-08-18 15:50:06 -06:00
Daz DeBoer dc5f59ec6e Update action description for SEO 2023-08-17 17:00:13 -06:00
Daz DeBoerandGitHub c87c55823d Merge pull request #850 from gradle/dd/docs
Improve docs on Gradle User Home caching
2023-08-17 23:18:35 +02:00
daz cfdcfc37ed Docs reformat 2023-08-17 15:13:47 -06:00
daz 193108951e Improve docs on Gradle User Home caching
- Describe the limitations/properties of the GitHub Actions cache
- Document the algorithm for generating a cache key, and the way that cache entries are matched
- Describe in more detail how entries are de-duplicated
- Explain how cache entries can be optimized in Job pipelines

Fixes #831
Fixes #608
2023-08-17 14:49:12 -06:00
Daz DeBoerandGitHub f9b4995b32 Docs: clarify incompatibility with setup-java caching
Fixes #725
2023-08-16 14:26:17 -06:00
Daz DeBoerandGitHub e3028deccc Merge pull request #826 from 3flex/patch-1
Polish GitHub Dependency Graph support section
2023-08-15 15:31:22 +02:00
Daz DeBoerandGitHub cb1fda6460 Merge pull request #836 from gradle/dd/dependency-updates
Dependency updates
2023-08-15 15:17:53 +02:00
daz 19e2bdf3c0 Build outputs 2023-08-14 20:07:24 -06:00
daz 891451e1fc Update NPM dependencies 2023-08-14 20:04:27 -06:00
daz 03f0ac2c51 Bump to use the latest release 2023-08-14 19:59:38 -06:00
daz 999ba18af8 Bump dependency versions in sample app 2023-08-14 19:57:15 -06:00
daz 43f8f93391 Update to GE plugin 3.14.1 2023-08-14 19:55:05 -06:00
Daz DeBoerandGitHub a4cf152f48 Merge pull request #817 from gradle/dd/270
Prepare for 2.7.0 release
2023-07-24 17:04:07 +02:00
daz a8aac055e2 Build outputs 2023-07-24 08:55:39 -06:00
daz 7241fa5d56 Add new output to Action.yml 2023-07-24 08:43:47 -06:00
daz 9e58f8b1de Add dependency-graph-file as step output
Fixes #804
2023-07-24 08:37:14 -06:00
daz 632e888003 Update to the latest dependency-graph plugin
- Remove experimental warning
- Update documentation
2023-07-24 08:37:14 -06:00
daz ced6859e9c Update Build Scan™ to Build Scan® 2023-07-22 08:53:58 -06:00
daz 0904709a46 Bump GE plugin versions 2023-07-21 13:32:44 -06:00
daz 1b94073332 Bump development dependencies 2023-07-21 13:13:44 -06:00
Daz DeBoerandGitHub 4821f54162 Group all npm dependencies in a single dependabot PR 2023-07-21 12:19:33 -06:00
daz 915a66c096 Bump dependency-graph version number 2023-07-17 15:46:14 -06:00
daz 8e5c8782a3 Build outputs 2023-07-17 15:35:48 -06:00
daz 9f977db2d8 Update to latest plugin version 2023-07-17 15:12:30 -06:00
daz fa27d06744 Test configuration-cache compatibility 2023-07-17 14:00:55 -06:00
Daz DeBoerandGitHub a0fdbb009a Fix issue locating wrapper bat on windows 2023-07-15 23:04:38 -06:00
daz f59a6d4310 Avoid log messages for included builds 2023-07-15 22:33:54 -06:00
daz b69de5f2a9 Support multiple invocations in dependency-graph init script
If an existing dependency graph file is present for the configured job correlator,
we now generate a unique correlator value for the invocation. This allows the action
to submit dependency snapshots for a series of Gradle invocations within the same Job.

This commit updates to `github-dependency-graph-gradle-plugin@v0.0.6`, which reduces
redundancy in the mapping of resolved Gradle dependencies to the GitHub Dependency Graph.
2023-07-15 22:33:31 -06:00
daz 3c11eee5f9 Don't use full path when executing gradlew
Fixes #796
2023-07-13 16:15:54 -06:00
daz 4301451b53 Bump to Gradle 8.2.1 2023-07-13 21:38:47 +02:00
daz 295170c2ce Remove dists for removed actions 2023-07-13 13:12:44 -06:00
Daz DeBoerandGitHub ad97b0f09e Bump the github-actions group with 1 update (#784)
Bumps the github-actions group with 1 update:
[gradle/gradle-build-action](https://github.com/gradle/gradle-build-action).
2023-07-11 02:51:25 +02:00
Daz DeBoerandGitHub bd57605957 Remove 'experimental' from chapter title 2023-07-10 10:26:35 -06:00
Daz DeBoerandGitHub f464d5c9e5 Improve docs for dependency-graph 2023-07-10 10:23:31 -06:00
daz cef72ff9e4 Use latest github-dependency-graph-gradle-plugin 2023-07-10 07:16:49 -06:00
Daz DeBoerandGitHub 7a67f395d2 Add basic support for GitHub Dependency Graph (#782) 2023-07-08 04:57:02 +02:00
daz bc190ca89a Build outputs 2023-07-07 20:43:20 -06:00
daz f01b48d89d Do not attempt dependency graph on unsupported Gradle versions 2023-07-07 20:42:49 -06:00
daz 1e71bceb3f Supply plugin portal URL directly
The 'gradlePluginPortal()' convenience isn't supported in older Gradle versions.
2023-07-07 20:42:49 -06:00
Daz DeBoer 9a4d99b236 Add initial docs for dependency-graph support 2023-07-07 20:42:49 -06:00
daz 33f9bc031c Added action to clear deps for a correlator 2023-07-07 20:42:49 -06:00
daz 437bff62b6 Add basic test coverage for dependency graph
- Test workflow with dependency graph enabled
- Gradle test for init-script functionality
2023-07-07 20:42:49 -06:00
daz c0186c5832 Replace spaces with underscore in job correlator 2023-07-07 20:42:49 -06:00
daz ee7ca6ac9b Remove defunct generate actions 2023-07-07 20:42:48 -06:00
daz 063cc1c708 Allow flexible use of dependency-graph support
Adds a 'dependency-graph' parameter that has 4 options:
1. 'disabled': no dependency graph files generated (the default)
2. 'generate': dependency graph files will be generated and saved as artifacts.
3. 'generate-and-submit': dependency graph files will be generated, saved as artifacts,
   and submitted to the Dependency Submission API on job completion.
4. 'download-and-submit': any previously uploaded dependency graph artifacts will be downloaded
   and submitted to the Dependency Submission API.
2023-07-07 20:42:48 -06:00
daz 820b228f28 Switch back to using published plugin 2023-07-07 20:42:48 -06:00
daz d0ffeaa089 Reduce log level for debug message 2023-07-07 20:42:48 -06:00
daz 4c9c435d2f Configure Gradle User Home for dependency-graph
Instead of requiring an action step to generate the graph, configure Gradle User Home
so that subsequent Gradle invocations can generate a graph. Any generated graph files
are uploaded as artifacts on job completion.

- Construct job.correlator from workflow/job/matrix
- Export job.correlator as an environment var
- Upload artifacts at job completion in post-action step
- Specify the location of dependency graph report
- Only apply dependency graph init script when explicitly enabled
2023-07-07 20:42:48 -06:00
daz a6ad1901be Copy dependency graph init script to Gradle Home
- Temporarily use a hard-coded plugin for convenience
2023-07-07 20:42:48 -06:00
daz d7761f188f Update prettier to v3.0.0 2023-07-08 04:40:54 +02:00
Daz DeBoerandGitHub 92c37aaab7 Update dependencies (#779) 2023-07-08 04:12:58 +02:00
daz 1a6aca96f3 Build outputs 2023-07-07 19:56:01 -06:00
daz 35af09efd8 Update NPM dependencies 2023-07-07 19:56:00 -06:00
daz 00309f16a9 Use gradle-build-action@v2.5.1 2023-07-07 19:56:00 -06:00
daz 3273b6ada1 Update to Gradle 8.2
- Update all wrappers
- Update .tool-versions
- Update version to run unit tests
- Test init scripts on 8.0 and 8.X
2023-07-07 19:55:23 -06:00
Daz DeBoer f807993b34 Configure grouped PRs for dependabot 2023-07-07 15:27:44 -06:00
daz bde650d6f1 Update copyright notice 2023-06-30 08:57:49 -06:00
Daz DeBoerandGitHub 40b6781dcd Merge pull request #757 from gradle/dd/issue-756
Sanitize workflow name when generating cache key
2023-06-29 18:32:22 +02:00
daz 626d937994 Remove commas from workflow name
Commas are explicitly disallowed in cache keys, so remove any from
workflow name when generating cache key.
2023-06-29 10:01:14 -06:00
daz 6c3f1eadfe Reproduce issue with comma in workflow name 2023-06-29 09:59:12 -06:00
daz 8e02c8272a Build outputs 2023-06-28 12:24:28 -06:00
daz f63cb02cfc Bump development dependencies 2023-06-28 11:51:09 -06:00
daz 198484d871 Bump java dependencies in samples/tests 2023-06-28 11:48:23 -06:00
Daz DeBoerandGitHub fce96e0d6a Merge pull request #740 from gradle/dd/dependency-graph-actions
Initial support for GitHub Dependency Submission
2023-06-28 19:38:14 +02:00
daz 75a86cfe02 Build outputs 2023-06-28 11:24:58 -06:00
daz be413309fa First cut at actions for dependency-graph
- Dependency graph init-script references published version of plugin jar.
- `dependency-graph-generate` action will:
     - Provision Gradle if required
     - Execute Gradle with dependency-graph plugin to generate graph JSON
     - Upload dependency-graph JSON file as workflow artifact
- `dependency-graph-submit` action will:
    - Download dependency-graph JSON artifact
    - Submit the graph via the GitHub dependency submission API
2023-06-28 11:24:57 -06:00
Daz DeBoerandGitHub 1b2daf5833 Merge pull request #734 from gradle/dd/input-params
Refactor in preparation for dependency-graph support
2023-06-06 18:52:31 +02:00
daz 4388b1f9e5 Build outputs 2023-06-06 10:51:48 -06:00
daz 07023d3e3e Refactor input parameters
Moved reading of all input parameters into a common source: `input-params.ts`.
This centralized all input parameter reads, and allowed an improved implementation
of reading boolean parameters. In particular, the implementation now provides a default
value for a boolean input parameter that isn't declared for an action.
2023-06-06 10:47:56 -06:00
daz c94d573317 Refactor action execution for reuse
Introducing new actions for the GitHub dependency graph will involve reuse of much of
the action infrastructure. This commit reorganises things a little to facilitate reuse.
2023-06-03 14:09:52 -06:00
daz 680037c65b Bump Gradle Enterprise plugin version 2023-05-29 13:17:01 -06:00
daz 2bf6bc3646 Include workflow name in cache key
Fixes #699 by avoiding cache key collisions between jobs with the
same name in different workflows.
2023-05-23 14:59:12 -06:00
Daz DeBoerandGitHub 631021bf98 Document the generate-job-summary options
Fixes #646
2023-05-23 14:56:51 -06:00
Daz DeBoerandGitHub d1c4012c0d Merge pull request #719 from gradle/dd/dependency-updates
Update development dependencies
2023-05-23 22:25:34 +02:00
daz c097126a28 Bump NPM development dependencies 2023-05-23 14:15:08 -06:00
daz b4a540a61f Bump com.fasterxml.jackson.dataformat:jackson-dataformat-smile from 2.15.0 to 2.15.1 2023-05-23 14:13:17 -06:00
daz c9a87440e3 Bump org.gradle.enterprise plugin to 3.13.2 2023-05-23 14:11:15 -06:00
daz d23c38fad3 Remove incorrect comment 2023-05-04 08:25:28 -06:00
daz a810b86311 Update dependencies
- Bump string-argv from 0.3.1 to 0.3.2
- Bump patch-package from 6.5.1 to 7.0.0
- Bump @typescript-eslint/parser from 5.59.1 to 5.59.2
2023-05-02 14:58:36 -06:00
Daz DeBoerandGitHub 7e48093f71 Attempt to resolve security alert
Testing if explicitly using `v2.4.2` will cause the alert to be resolved.
2023-05-01 13:36:49 -06:00
Daz DeBoerandGitHub 12681a2972 Merge pull request #695 from gradle/dd/issue-626
Handle GE plugin applied in settingsEvaluated
2023-04-29 09:07:12 -06:00
daz a580d9bd57 Detect GE plugin applied in settingsEvaluated
The `PluginManager.hasPlugin` method was not detecting the GE plugin when it
was applied during settingsEvaluated.
Switching to `PluginManager.withPlugin` fixes this.

Fixes #626
2023-04-26 10:49:32 -06:00
daz a13870c94e Test for GE plugin applied in settingsEvaluated 2023-04-26 10:49:31 -06:00
daz 55d241b8a2 Update development dependencies 2023-04-25 11:26:43 -06:00
Daz DeBoerandGitHub 9cf99034d2 Update to latest Gradle and GE plugin
* Update workflow samples to Gradle 8.1.1
* Update tests to use Gradle 8.1.1
*Update workflow samples to GE plugin 3.13
2023-04-22 12:56:45 -06:00
Daz DeBoerandGitHub 749f47bda3 Update README.md for changes in release 2023-04-14 16:29:18 -06:00
Daz DeBoerandGitHub eb126d771e Update for Gradle 8.1 release
With Gradle 8.1, the configuration-cache has changed and is now stable. 
As a temporary measure, this commit disables save/restore of the configuration-cache
data to avoid issues until we can deal with this change properly.
2023-04-14 16:23:09 -06:00
daz 5056fa9d50 Patch @azure/logger to address CodeQL violations 2023-04-12 14:15:34 -06:00
daz 8a0051ffb2 Specify current Gradle version via ASDF 2023-04-12 13:04:14 -06:00