7 lines
231 B
Bash
Executable File
7 lines
231 B
Bash
Executable File
export VERSION=$(git describe --tags --exact-match 2>/dev/null \
|
|
|| git symbolic-ref --short -q HEAD \
|
|
|| git rev-parse --short HEAD)
|
|
|
|
echo "Building and publishing $VERSION..."
|
|
./gradlew -Pversion=$VERSION publishToMavenLocal
|