Add step input for specifying additional gradle options #96
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
step.yml
andREADME.md
is updated with the changes (if needed)Version
Requires a MINOR version update
Context
The Step is running
gradlew dependencies
command in order to list the given project's missing dependencies.To make the Step more felxibale and align our Step development guideline (Provide input for additional command-line arguments) this PR introduces a new Step input for specifying additional options for the
gradlew dependencies
command.With this change, users can overcome, for example, issues with the incubating Configuration cache feature while migrating the project by passing the
--no-configuration-cache
or--configuration-cache-problems=warn
options.Changes
gradlew_dependencies_options
) was introduced for passing additional options to thegradlew dependencies
command.Investigation details
Gradle Configuration cache: https://docs.gradle.org/7.4.2/userguide/configuration_cache.html#config_cache:intro
Decisions
The change was manually tested only since the Step is not prepared for writing unit tests easily. I will create a follow-up ticket to make up for the missing test and to make the step testable.
With the manual test, I checked if the provided options are passed properly to the
gradlew dependencies
command:sample
workflow to pass an addition gradlew dependencies option to the step: