I would like to always turn off color because I can’t read it when it has color. Is there a settings file? I tried setting GRADLE_OPTS
C:\depot\CoreLibs\main>echo %GRADLE_OPTS% --no-color
C:\depot\CoreLibs\main>gradle tasks Unknown option or illegal argument: --no-color. Please check for incorrect spelling or review documentation of startup options.
Could not create the Java virtual machine.
With GRADLE_OPTS unset I can do this
C:\depot\CoreLibs\main>set GRADLE_OPTS=
C:\depot\CoreLibs\main>gradle --no-color show sourceSets.all main sourceSets.all test :show VARS
version:
4.1.2.3
BUILD SUCCESSFUL
Total time: 5.462 secs
using
C:\depot\CoreLibs\main>gradle -version
------------------------------------------------------------ Gradle 1.4 ------------------------------------------------------------
Gradle build time: Monday, January 28, 2013 3:42:46 AM UTC Groovy: 1.8.6 Ant: Apache Ant™ version 1.8.4 compiled on May 22 2012 Ivy: 2.2.0 JVM: 1.6.0_37 (Oracle Corporation R28.2.5-20-152429-1.6.0_37-20120927-1915-windows-x86_64) OS: Windows 7 6.1 amd64