Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Created July 31, 2015 09:59
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chris-martin/d828c1c587efc7abb37b to your computer and use it in GitHub Desktop.
Save chris-martin/d828c1c587efc7abb37b to your computer and use it in GitHub Desktop.
Method for launching a Scala REPL for a Gradle project.
task classpath << { println sourceSets.main.runtimeClasspath.asPath }
// Put REPL initialization code here
#!/bin/bash
gradle compileScala && scala -i repl.scala -classpath $(gradle classpath -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment