Allow additional arguments for resolve-all-dependencies

At times, additional CLI args may be required to invoke Gradle.
Add a parameter to provide these args.
This commit is contained in:
daz 2024-01-28 11:34:50 -07:00
parent 177cef6d02
commit 58d5bdcbe5
No known key found for this signature in database

View file

@ -29,6 +29,10 @@ inputs:
required to submit via the Dependency Submission API.
required: false
default: 'generate-and-submit'
additional-arguments:
description: |
Additional arguments to pass to Gradle. For example, `--no-configuration-cache --stacktrace`.
required: false
build-scan-publish:
description: |
@ -61,8 +65,8 @@ runs:
arguments: |
--no-configure-on-demand
--dependency-verification=off
--stacktrace
:ForceDependencyResolutionPlugin_resolveAllDependencies
${{ inputs.additional-arguments }}
- name: Generate and save dependency graph
if: ${{ inputs.dependency-graph-action == 'generate-and-save' }}
uses: gradle/actions/setup-gradle@v3-beta
@ -78,8 +82,8 @@ runs:
arguments: |
--no-configure-on-demand
--dependency-verification=off
--stacktrace
:ForceDependencyResolutionPlugin_resolveAllDependencies
${{ inputs.additional-arguments }}
- name: Download and submit dependency graph
if: ${{ inputs.dependency-graph-action == 'retrieve-and-submit' }}
uses: gradle/actions/setup-gradle@v3-beta