This plugin for Gradle allows you to easily interact with your Groovy and Java applications using the Groovy Console.
Just run gradle console
and you will get a console window with all your runtime dependencies loaded for you. This is useful in case you need to interact your project dependencies or your source code in a fast and flexible way.
Just add the following snippet of code to your build.gradle
file
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'net.carlosgsouza', name: 'gradle-console', version: '1.0'
}
}
apply plugin: 'console'
Invoke the console
task using gradle
gradle console
This is just the first version of this plugin and we are counting on your feedback to make it better! Don't hesitate to send us an e-mail, create an issue on GitHub or, even better, submit a pull request.
This plugin was created based on this post by Mike Hugo. Thanks, Mike!