changeset 63143 | ef72b104fa32 |
63142:4cf6726eb85e | 63143:ef72b104fa32 |
---|---|
1 #!/usr/bin/env bash |
|
2 set -e |
|
3 |
|
4 VERSION=1 |
|
5 |
|
6 # Build JAR and fetch sources |
|
7 mvn package |
|
8 |
|
9 # Copy to correct location |
|
10 mkdir -p lib |
|
11 cp "target/ci-extras-1.0-SNAPSHOT-jar-with-dependencies.jar" "lib/ci-extras.jar" |
|
12 |
|
13 # Clean up |
|
14 mvn clean |
|
15 |
|
16 # Package component |
|
17 rm -rf dist && mkdir -p dist |
|
18 tar czf "dist/ci-extras-${VERSION}.tar.gz" --exclude dist --transform "s/^\\./ci-extras-${VERSION}/" . |