Skip to content

Commit

Permalink
feat: parameterize dependency plugin version (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaryt authored Oct 11, 2022
1 parent e011e96 commit e307e85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/commands/with_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ parameters:
description: Verify dependencies are valid and available from public sources
type: boolean
default: true
dependency_plugin_version:
description: Specify the Maven Dependency Plugin
type: string
default: "3.1.2"
steps:
- run:
name: Generate Cache Checksum
Expand All @@ -44,6 +48,7 @@ steps:
environment:
PARAM_SETTINGS_FILE: << parameters.settings_file >>
PARAM_MVN_COMMAND: << parameters.maven_command >>
PARAM_DEP_PLUGIN_VER: << parameters.dependency_plugin_version >>
name: Verify dependencies
working_directory: << parameters.app_src_directory >>
command: << include(scripts/verify.sh) >>
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ if [ -n "$PARAM_SETTINGS_FILE" ]; then
fi

set -x
$PARAM_MVN_COMMAND org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline "$@"
$PARAM_MVN_COMMAND org.apache.maven.plugins:maven-dependency-plugin:"$PARAM_DEP_PLUGIN_VER":go-offline "$@"
set +x

0 comments on commit e307e85

Please sign in to comment.