I am experiencing the same issue when I run
./gradlew build --scan
under the cygwin. It does not allow me to answer yes/no to the license terms, versus when I run this under “command prompt” it lets me to answer “yes/no” on interactive prompt.
The output of command when I run it under cygwin (windows):
==================================================
fa@fa-laptop-win iCoup$ ./gradlew build --scan
Task :assemble UP-TO-DATE
Task :check UP-TO-DATE
Task :build UP-TO-DATE
BUILD SUCCESSFUL in 1s
The build scan was not published due to a configuration problem.
The Gradle Terms of Service have not been agreed to.
To agree to the Gradle Terms of Service, include the following in your root project’s configuration:
buildScan { termsOfServiceUrl = “Gradle, Inc. Terms of Use | Develocity”; termsOfServiceAgree = “yes” }
For more information, please see Develocity Gradle Plugin User Manual.
Alternatively, if you are using Gradle Enterprise, specify the server location.
For more information, please see Develocity Gradle Plugin User Manual.
==================================================
And if I add
buildScan { termsOfServiceUrl = “Gradle, Inc. Terms of Use | Develocity”; termsOfServiceAgree = “yes” }
to my build.gradle - then command executes fine, but with this line in build.gradle I can not execute any other commands in my build under pure windows command prompt nor under cygwin. It tells me:
===============================================================
fa@fa-laptop-win iCoup$ ./gradlew properties
FAILURE: Build failed with an exception.
Could not find method buildScan() for arguments [build_6ukaol4evri9488qeq6b2hdy3$_run_closure3@49eac987] on root project ‘iCoup’ of type org.gradle.api.Project.
BUILD FAILED in 1s