forked from domino-osgi/domino
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makerelease.sh
43 lines (30 loc) · 1.33 KB
/
makerelease.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
#!/bin/sh
set -e
if [ ! -f "staging-settings.xml" ]; then
cat > staging-settings.xml << EOF
<settings>
<servers>
<server>
<id>ossrh</id>
<username>your-username</username>
<password>your-password</password>
</server>
</servers>
</settings>
EOF
fi
echo "Please edit staging-settings.xml with propper connection details."
read
DOMINO_VERSION="1.1.0"
SCALA_VERSIONS="2.10.5 2.11.6"
for scalaVersion in $SCALA_VERSIONS; do
SCALA_BIN_VERSION=$(echo $scalaVersion | cut -d. -f1,2)
echo "Building for Scala ${scalaVersion}"
SCALA_VERSION=${scalaVersion} mvn clean source:jar scala:doc-jar install
echo "Uploading jar"
SCALA_VERSION=${scalaVersion} mvn -s ./staging-settings.xml -P deploy gpg:sign-and-deploy-file -DpomFile=.polyglot.pom.scala -Dfile="target/domino_${SCALA_BIN_VERSION}-${DOMINO_VERSION}.jar"
echo "Uploading sources"
SCALA_VERSION=${scalaVersion} mvn -s ./staging-settings.xml -P deploy gpg:sign-and-deploy-file -DpomFile=.polyglot.pom.scala -Dfile="target/domino_${SCALA_BIN_VERSION}-${DOMINO_VERSION}-sources.jar" -Dclassifier=sources
echo "Uploading javadoc"
SCALA_VERSION=${scalaVersion} mvn -s ./staging-settings.xml -P deploy gpg:sign-and-deploy-file -DpomFile=.polyglot.pom.scala -Dfile="target/domino_${SCALA_BIN_VERSION}-${DOMINO_VERSION}-javadoc.jar" -Dclassifier=javadoc
done