-
-
Save heypoom/1d656a02823ec4c569d1b754c54f4643 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