Skip to content

Commit 994f279

Browse files
authored
Merge pull request #51 from flyinprogrammer/feature/singularBuildNumber
feat: set build number for artifactory upload
2 parents 55d69e4 + e30999e commit 994f279

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

artifactory.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ if (project.hasProperty('bintrayUser') && project.hasProperty('bintrayKey')) {
3333
defaults {
3434
publications('maven')
3535
}
36+
clientConfig.info.setBuildNumber('' + project.property('buildNumber'))
3637
}
3738
}
3839
}

ci/travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ] && [ "$bin
2020

2121
echo -e "Building Tag $TRAVIS_REPO_SLUG/$TRAVIS_TAG"
2222
./gradlew \
23-
-Pversion="$TRAVIS_TAG" -Pstage="$TRAVIS_BUILD_STAGE_NAME" \
23+
-Pversion="$TRAVIS_TAG" -Pstage="$TRAVIS_BUILD_STAGE_NAME" -PbuildNumber="$TRAVIS_BUILD_NUMBER" \
2424
-PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" \
2525
-PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
2626
-PvcProtobufLibs="/c/Program Files/protobuf/lib" -PvcProtobufInclude="/c/Program Files/protobuf/include" \

0 commit comments

Comments
 (0)