From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/java:master commit in: eclass/
Date: Fri, 6 Jan 2023 14:53:10 +0000 (UTC) [thread overview]
Message-ID: <1673016512.5f9b10dea4332283361b38bccb8f7b7ed186fa9e.flow@gentoo> (raw)
commit: 5f9b10dea4332283361b38bccb8f7b7ed186fa9e
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 6 14:48:32 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Jan 6 14:48:32 2023 +0000
URL: https://gitweb.gentoo.org/proj/java.git/commit/?id=5f9b10de
gradle.eclass: update
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
eclass/gradle.eclass | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/eclass/gradle.eclass b/eclass/gradle.eclass
index 09eda636..90e21905 100644
--- a/eclass/gradle.eclass
+++ b/eclass/gradle.eclass
@@ -32,6 +32,17 @@ inherit edo
# @DESCRIPTION:
# First gradle version that is not supported.
+# @ECLASS_VARIABLE: EGRADLE_EXACT_VER
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# The exactly required gradle version.
+
+# @ECLASS_VARIABLE: EGRADLE_PARALLEL
+# @DESCRIPTION:
+# Set to the 'true', the default, to invoke gradle with --parallel. Set
+# to 'false' to disable parallel gradle builds.
+: ${EGRADLE_PARALLEL=true}
+
# @ECLASS_VARIABLE: EGRADLE_USER_HOME
# @DESCRIPTION:
# Directroy used the user's home directory by gradle.
@@ -69,6 +80,14 @@ gradle-set_EGRADLE() {
ver="${BASH_REMATCH[1]}"
fi
+ if [[ -n ${EGRADLE_EXACT_VER} ]]; then
+ ver_test "${ver}" -ne ${EGRADLE_EXACT_VER} && continue
+
+ selected="${candidate}"
+ selected_ver="${ver}"
+ break
+ fi
+
if [[ -n ${EGRADLE_MIN} ]] \
&& ver_test "${ver}" -lt "${EGRADLE_MIN}"; then
# Candidate does not satisfy EGRADLE_MIN condition.
@@ -113,12 +132,15 @@ egradle() {
--stacktrace
--no-daemon
--offline
- --parallel
--no-build-cache
--gradle-user-home "${EGRADLE_USER_HOME}"
--project-cache-dir "${T}/gradle_project_cache"
)
+ if $EGRADLE_PARALLEL; then
+ gradle_args+=( --parallel )
+ fi
+
local -x JAVA_TOOL_OPTIONS="-Duser.home=\"$T\""
# TERM needed, otherwise gradle may fail on terms it does not know about
TERM=xterm \
next reply other threads:[~2023-01-06 14:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-06 14:53 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-28 7:38 [gentoo-commits] proj/java:master commit in: eclass/ Florian Schmaus
2023-06-28 7:38 Florian Schmaus
2023-03-16 13:40 Florian Schmaus
2023-03-16 10:49 Florian Schmaus
2023-03-16 10:45 Florian Schmaus
2023-01-08 10:53 Florian Schmaus
2023-01-08 10:52 Florian Schmaus
2023-01-08 10:51 Florian Schmaus
2023-01-08 10:29 Florian Schmaus
2023-01-06 17:11 Florian Schmaus
2023-01-06 17:10 Florian Schmaus
2023-01-06 13:32 Florian Schmaus
2022-07-23 10:41 Florian Schmaus
2021-06-30 7:22 Florian Schmaus
2015-07-22 18:37 James Le Cuirot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1673016512.5f9b10dea4332283361b38bccb8f7b7ed186fa9e.flow@gentoo \
--to=flow@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox