Skip to content

Commit

Permalink
refactor(nexux): use maven_project_version for detect version
Browse files Browse the repository at this point in the history
  • Loading branch information
definite committed May 23, 2018
1 parent bb6c38c commit f8ae674
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions zanata-nexus-release
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
export LC_ALL=C
set -eu
ScriptDir=$(dirname $(readlink -q -f $0))
FunctionScriptFile=${ScriptDir}/zanata-functions
FunctionScriptFile=$ScriptDir/zanata-functions
source "$FunctionScriptFile"
trap exit_print_error EXIT

Expand All @@ -36,7 +36,7 @@ print_status -t parsing -s "Start"

RepoName=$(repo_name_get)
ArtifactId=$(get_artifact_id $RepoName)
Version=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:exec)
Version=$(maven_project_version)

MavenReleaseProfiles=$(get_artifact_var_value $ArtifactId MAVEN_RELEASE_PROFILES)

Expand Down
6 changes: 3 additions & 3 deletions zanata-nexus-staging
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
export LC_ALL=C
set -eu
ScriptDir=$(dirname $(readlink -q -f $0))
FunctionScriptFile=${ScriptDir}/zanata-functions
FunctionScriptFile=$ScriptDir/zanata-functions
source "$FunctionScriptFile"
trap exit_print_error EXIT

RepoName=$(repo_name_get)
ArtifactId=$(get_artifact_id $RepoName)
Version=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:exec)
Version=$(maven_project_version)

MavenReleaseProfiles=$(get_artifact_var_value $ArtifactId MAVEN_RELEASE_PROFILES)

Expand Down Expand Up @@ -80,4 +80,4 @@ else
ReleaseProfileOpts=
fi

run_command ./mvnw ${MAVEN_COMMON_OPTIONS:-} ${MAVEN_RELEASE_OPTIONS:-} $ReleaseProfileOpts $ProjectOpts $Goal -DstagingDescription="$ArtifactId:$Version"
run_command $MvnCmd ${MAVEN_COMMON_OPTIONS:-} ${MAVEN_RELEASE_OPTIONS:-} $ReleaseProfileOpts $ProjectOpts $Goal -DstagingDescription="$ArtifactId:$Version"

0 comments on commit f8ae674

Please sign in to comment.