2017-09-29 01:57:35 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
source $(dirname $0)/common.sh
|
|
|
|
repository=$(pwd)/distribution-repository
|
|
|
|
|
|
|
|
pushd git-repo > /dev/null
|
2021-03-05 23:17:13 +08:00
|
|
|
if [[ -d /opt/openjdk-toolchain ]]; then
|
2021-03-06 01:42:06 +08:00
|
|
|
./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository -PtoolchainVersion=${TOOLCHAIN_JAVA_VERSION} -Porg.gradle.java.installations.auto-detect=false -Porg.gradle.java.installations.auto-download=false -Porg.gradle.java.installations.paths=/opt/openjdk-toolchain/
|
2021-03-05 23:17:13 +08:00
|
|
|
else
|
|
|
|
./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository
|
|
|
|
fi
|
2017-09-29 01:57:35 +08:00
|
|
|
popd > /dev/null
|