All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.jreleaser.templates.native-image.asdf.bin.download.tpl Maven / Gradle / Ivy

#!/usr/bin/env bash

set -euo pipefail

current_script_path=${BASH_SOURCE[0]}
plugin_dir=$(dirname "$(dirname "$current_script_path")")

# shellcheck source=../lib/utils.bash
source "${plugin_dir}/lib/utils.bash"

mkdir -p "$ASDF_DOWNLOAD_PATH"

release_file="$ASDF_DOWNLOAD_PATH/{{asdfDistributionArtifactFile}}"

# Download distribution file to the download directory
download_release "$ASDF_INSTALL_VERSION" "$release_file"

#  Extract contents of distribution file into the download directory
extract_release "$ASDF_INSTALL_VERSION" "$release_file" || fail "Could not extract $release_file"

# Remove the distribution file since we don't need to keep it
rm "$release_file"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy