|
|
@ -6,8 +6,7 @@ repository=$(pwd)/distribution-repository
|
|
|
|
|
|
|
|
|
|
|
|
pushd git-repo > /dev/null
|
|
|
|
pushd git-repo > /dev/null
|
|
|
|
if [[ -d /opt/openjdk-toolchain ]]; then
|
|
|
|
if [[ -d /opt/openjdk-toolchain ]]; then
|
|
|
|
toolchain_java_version=$( ./$(dirname $0)/get-toolchain-java-version.sh )
|
|
|
|
./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/
|
|
|
|
./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/
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository
|
|
|
|
./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublicationsToDeploymentRepository
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|