Skip to content

Instantly share code, notes, and snippets.

@heypoom
Forked from chris-martin/build.gradle
Created January 15, 2018 08:04
Show Gist options
  • Save heypoom/1d656a02823ec4c569d1b754c54f4643 to your computer and use it in GitHub Desktop.
Save heypoom/1d656a02823ec4c569d1b754c54f4643 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