I’m trying to run a groovy shell (org.codehaus.groovy.tools.shell.Main) with my project’s classpath. I created the following task:
task(shell, dependsOn: ':core:compileJava', type: JavaExec) {
main = 'org.codehaus.groovy.tools.shell.Main'
classpath configurations.shell + project(':core').sourceSets.main.runtimeClasspath
standardInput = System.in
}
which works, but due to some sort of buffering issue, if I hit backspace in the console the cursor doesn’t move back and the text still appears, but it is apparently removed. Is there a workaround for this? I couldn’t find much aside from http://gradle.1045684.n5.nabble.com/Reading-keyboard-input-td3073108.html