Won’t it be cool if one could interactively explore the Gradle build context? The wait is over. Using the following Gist you can do exactly that. Scroll down to see the init script.

Using the :inspect command of groovysh you can launch the ObjectBrowser to inspect the objects starting at project, settings, gradle in ObjectBrowser GUI.

The Gradle init script mentioned in the command below — gradle-groovysh-init.gradle can be found at the bottom of the post.

--

--

Sometimes you want to install the artifact (G:A:V.jar) output by a maven project (/mavenproject) build into a local folder e.g. /mavenproject/m2/repository that has same layout as a maven repository. You can add this plugin execution to you pom.xml file:

And then you can invoke the execution with id like…

--

--