Use the following command to execute groovysh task in the context of the project. The project
, settings
and gradle
bindings are set.
> .\gradlew -q --no-daemon --console=plain --init-script groovysh-task.gradle groovysh
...
...
groovy:000> :inspect project
groovy:000> :inspect settings
groovy:000> :inspect gradle