Skip to content

Commit 98cbfd1

Browse files
committed
add javac version to jar name
1 parent f2efa05 commit 98cbfd1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
set -x
44
set -e
55

6-
rm -rf ./bin/
7-
mkdir bin;
6+
mkdir -p bin;
87

98
javac $(find src -name "*.java") $(find test -name "*.java") -d bin
10-
cd bin && jar -cvf ./java-redis-client-$(git describe).jar $(find . -name "*.class")
9+
cd bin && jar -cvf ./java-redis-client-$(git describe)--$(javac -version 2>&1 | sed 's/[^a-z0-9._]\+/-/g').jar $(find . -name "*.class")

0 commit comments

Comments
 (0)