Skip to content

Instantly share code, notes, and snippets.

@pintowar
Last active April 26, 2017 17:26
Show Gist options
  • Save pintowar/4619f6a0d22c9cd2adfcb74fa9e11a10 to your computer and use it in GitHub Desktop.
Save pintowar/4619f6a0d22c9cd2adfcb74fa9e11a10 to your computer and use it in GitHub Desktop.
apply plugin: 'scala'
repositories{
mavenCentral()
}
dependencies{
compile "org.scala-lang:scala-library:2.11.8"
compile "org.scala-lang:scala-compiler:2.11.8"
}
task repl(type:JavaExec) {
main = "scala.tools.nsc.MainGenericRunner"
classpath = sourceSets.main.runtimeClasspath
standardInput System.in
args '-usejavacp'
}
// run with "gradle repl --console plain --no-daemon"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment