From e0a01abb0f0c498e2aab102988acd379b9fd2ba2 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Wed, 29 Nov 2017 18:29:47 +0100 Subject: [PATCH] Create new package configuration for Gradle Sets and exports global default Gradle (1) options using the "GRADLE_OPTS" (2) environment variable. It should include * "org.gradle.daemon=true" - Enable to always use the Gradle daemon to run builds. Since Gradle 3.0, daemon is enabled by default (2) and is recommended for running Gradle. * "org.gradle.console=rich" - Always colorize console output. References: (1) https://gradle.org (2) https://docs.gradle.org/current/userguide/gradle_command_line.html#sec:cli_environment_variables (3) https://docs.gradle.org/3.0/release-notes.html#improved-gradle-daemon,-now-enabled-by-default GH-86 --- snowblocks/bash/config/pkg/gradle | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 snowblocks/bash/config/pkg/gradle diff --git a/snowblocks/bash/config/pkg/gradle b/snowblocks/bash/config/pkg/gradle new file mode 100644 index 0000000..7245a02 --- /dev/null +++ b/snowblocks/bash/config/pkg/gradle @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# Copyright (c) 2016-2017 Arctic Ice Studio +# Copyright (c) 2016-2017 Sven Greb + +# Project: igloo +# Repository: https://github.com/arcticicestudio/igloo +# License: MIT +# References: +# https://docs.gradle.org/current/userguide/gradle_command_line.html +# https://docs.gradle.org/current/userguide/build_environment.html +# https://docs.gradle.org/current/userguide/console.html#sec:console_build_output + +# Set the default system-wide Gradle options. +# +# > org.gradle.daemon +# Enable to always use the Gradle daemon to run builds. +# Since Gradle 3.0, daemon is enabled by default and is recommended for running Gradle. +# > org.gradle.console +# Use "rich" level to always colorize console output. +export GRADLE_OPTS="-Dorg.gradle.daemon=true -Dorg.gradle.console=rich"