-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathlocal_release.sh
executable file
·20 lines (16 loc) · 1.24 KB
/
local_release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -e
export MAVEN_OPTS="$MAVEN_OPTS -Xms2048m -Xmx8192m"
export JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx8192m"
# line below no longer appears to be working so using less resilient hard coded location
#export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home
echo
java -version
echo
./mvnw -version
echo
export GPG_TTY=$(tty)
./mvnw release:clean -Ddeploy.plugin.repository.url=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -P release -Drelease.arguments="-Dmaven.test.skip=true -DskipTests=true -Ddeploy.plugin.repository.url=https://oss.sonatype.org/service/local/staging/deploy/maven2/" && \
./mvnw release:prepare -Ddeploy.plugin.repository.url=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -P release -Drelease.arguments="-Dmaven.test.skip=true -DskipTests=true -Ddeploy.plugin.repository.url=https://oss.sonatype.org/service/local/staging/deploy/maven2/" && \
./mvnw release:perform -Ddeploy.plugin.repository.url=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -P release -Drelease.arguments="-Dmaven.test.skip=true -DskipTests=true -Ddeploy.plugin.repository.url=https://oss.sonatype.org/service/local/staging/deploy/maven2/"