diff options
author | Florian Schmaus <flow@gentoo.org> | 2023-06-28 09:24:23 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2023-06-28 09:25:56 +0200 |
commit | 405da11dfd1d79f8766dcae6ecbba9397c0ee799 (patch) | |
tree | d16940c2298c54fb3b07fc82030e71fb8cff4016 | |
parent | gradle.eclass: drop usage of compgen (diff) | |
download | java-405da11dfd1d79f8766dcae6ecbba9397c0ee799.tar.gz java-405da11dfd1d79f8766dcae6ecbba9397c0ee799.tar.bz2 java-405da11dfd1d79f8766dcae6ecbba9397c0ee799.zip |
gradle.eclass: add gradle-src_unpack
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rw-r--r-- | eclass/gradle.eclass | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/eclass/gradle.eclass b/eclass/gradle.eclass index 7595923d..91c8299d 100644 --- a/eclass/gradle.eclass +++ b/eclass/gradle.eclass @@ -32,6 +32,10 @@ # ... # $(gradle_src_uri) # " +# src_unpack() { +# default +# gradle-src_unpack +# } # @CODE # # Afterwards, use egradle to invoke gradle. @@ -160,6 +164,18 @@ gradle-src_uri() { echo "https://services.gradle.org/distributions/gradle-${EGRADLE_BUNDLED_VER}-bin.zip" } +# @FUNCTION: gradle-src_unpack +# @DESCRIPTION: +# Unpack the "bundled" gradle version. You must have +# EGRADLE_BUNDLED_VER set when calling this function. +gradle-src_unpack() { + if [[ -z ${EGRADLE_BUNDLED_VER} ]]; then + die "Must set EGRADLE_BUNDLED_VER when calling gradle-src_unpack" + fi + + unpack "gradle-${EGRADLE_BUNDLED_VER}-bin.zip" +} + # @FUNCTION: egradle # @USAGE: [gradle-args] # @DESCRIPTION: |