Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Add basic support for GitHub Dependency Graph #782

Merged
merged 13 commits into from
Jul 8, 2023
Merged

Conversation

bigdaz
Copy link
Member

@bigdaz bigdaz commented Jul 8, 2023

No description provided.

bigdaz added 13 commits July 7, 2023 20:42
- Temporarily use a hard-coded plugin for convenience
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
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.
- Test workflow with dependency graph enabled
- Gradle test for init-script functionality
The 'gradlePluginPortal()' convenience isn't supported in older Gradle versions.
@bigdaz bigdaz merged commit 7a67f39 into main Jul 8, 2023
@bigdaz bigdaz deleted the dependency-graph branch July 8, 2023 02:57
@bigdaz bigdaz restored the dependency-graph branch July 8, 2023 02:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant