/
publish.sh
executable file
·50 lines (43 loc) · 1.22 KB
/
publish.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /bin/sh
if [ $# -eq 1 -a "$1" = "-x" ]; then
CMD="sbt"
else
echo "Showing commands that would be executed. Use -x to run."
CMD="echo sbt"
fi
FULL_VERSIONS="2.11.0 2.11.1 2.11.2 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.11.11 2.11.12 2.12.1 2.12.2 2.12.3 2.12.4 2.12.5 2.12.6 2.13.0-M3"
BIN_VERSIONS="2.11.12 2.12.6 2.13.0-M3"
JVM_BIN_VERSIONS="2.10.7 2.11.12 2.12.6 2.13.0-M3"
SBT_VERSION="2.10.7"
SBT1_VERSION="2.12.6"
SBT1_SBTVERSION="1.0.0"
COMPILER="compiler jUnitPlugin"
LIBS="library irJS ioJS loggingJS linkerJS testInterface jUnitRuntime"
JVM_LIBS="ir io logging linker jsEnvs jsEnvsTestKit nodeJSEnv testAdapter"
# Publish compiler
for v in $FULL_VERSIONS; do
ARGS="++$v"
for p in $COMPILER; do
ARGS="$ARGS $p/publishSigned"
done
$CMD $ARGS
done
# Publish libraries
for v in $BIN_VERSIONS; do
ARGS="++$v"
for p in $LIBS; do
ARGS="$ARGS $p/publishSigned"
done
$CMD $ARGS
done
# Publish JVM libraries
for v in $JVM_BIN_VERSIONS; do
ARGS="++$v"
for p in $JVM_LIBS; do
ARGS="$ARGS $p/publishSigned"
done
$CMD $ARGS
done
# Publish sbt-plugin
$CMD "++$SBT_VERSION" "sbtPlugin/publishSigned"
$CMD "++$SBT1_VERSION" "^^$SBT1_SBTVERSION" "sbtPlugin/publishSigned"