Created
July 31, 2015 09:59
-
-
Save chris-martin/d828c1c587efc7abb37b to your computer and use it in GitHub Desktop.
Method for launching a Scala REPL for a Gradle project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task classpath << { println sourceSets.main.runtimeClasspath.asPath } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put REPL initialization code here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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