mirror of
https://github.com/gradle/actions
synced 2024-11-27 11:52:24 +00:00
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:
parent
177cef6d02
commit
58d5bdcbe5
1 changed files with 6 additions and 2 deletions
|
@ -29,6 +29,10 @@ inputs:
|
||||||
required to submit via the Dependency Submission API.
|
required to submit via the Dependency Submission API.
|
||||||
required: false
|
required: false
|
||||||
default: 'generate-and-submit'
|
default: 'generate-and-submit'
|
||||||
|
additional-arguments:
|
||||||
|
description: |
|
||||||
|
Additional arguments to pass to Gradle. For example, `--no-configuration-cache --stacktrace`.
|
||||||
|
required: false
|
||||||
|
|
||||||
build-scan-publish:
|
build-scan-publish:
|
||||||
description: |
|
description: |
|
||||||
|
@ -61,8 +65,8 @@ runs:
|
||||||
arguments: |
|
arguments: |
|
||||||
--no-configure-on-demand
|
--no-configure-on-demand
|
||||||
--dependency-verification=off
|
--dependency-verification=off
|
||||||
--stacktrace
|
|
||||||
:ForceDependencyResolutionPlugin_resolveAllDependencies
|
:ForceDependencyResolutionPlugin_resolveAllDependencies
|
||||||
|
${{ inputs.additional-arguments }}
|
||||||
- name: Generate and save dependency graph
|
- name: Generate and save dependency graph
|
||||||
if: ${{ inputs.dependency-graph-action == 'generate-and-save' }}
|
if: ${{ inputs.dependency-graph-action == 'generate-and-save' }}
|
||||||
uses: gradle/actions/setup-gradle@v3-beta
|
uses: gradle/actions/setup-gradle@v3-beta
|
||||||
|
@ -78,8 +82,8 @@ runs:
|
||||||
arguments: |
|
arguments: |
|
||||||
--no-configure-on-demand
|
--no-configure-on-demand
|
||||||
--dependency-verification=off
|
--dependency-verification=off
|
||||||
--stacktrace
|
|
||||||
:ForceDependencyResolutionPlugin_resolveAllDependencies
|
:ForceDependencyResolutionPlugin_resolveAllDependencies
|
||||||
|
${{ inputs.additional-arguments }}
|
||||||
- name: Download and submit dependency graph
|
- name: Download and submit dependency graph
|
||||||
if: ${{ inputs.dependency-graph-action == 'retrieve-and-submit' }}
|
if: ${{ inputs.dependency-graph-action == 'retrieve-and-submit' }}
|
||||||
uses: gradle/actions/setup-gradle@v3-beta
|
uses: gradle/actions/setup-gradle@v3-beta
|
||||||
|
|
Loading…
Reference in a new issue