Last active
June 17, 2016 20:08
-
-
Save sethrylan/5910482 to your computer and use it in GitHub Desktop.
ScalaBasePlugin scalaConsole/scalaTestConsole tasks
This file contains 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
apply plugin: 'scala' | |
repositories { | |
mavenCentral() | |
} | |
ext { | |
versions = [ | |
scala: '2.9.2', | |
scalatest: '2.0.M3', | |
scalacheck: '1.10.1' | |
] | |
} | |
dependencies { | |
runtime "org.scala-lang:scala-compiler:$versions.scala" | |
compile "org.scala-lang:scala-library:$versions.scala" | |
} | |
scalaConsole.dependsOn(build) | |
scalaConsole.dependsOn(test) | |
scalaConsole.classpath += sourceSets.main.output | |
scalaTestConsole.classpath += sourceSets.test.output |
@sethrylan it would be nice to include the above comment's sourceSets.main.runtimeClasspath
in the gist for your blog, I'm sure others have hunted for it. Otherwise you can't run parts of your code that have external dependencies.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This configuration will produce the following errors in Scala 2.11:
JLine was unforked from Scala 2.11, so we need to bring in the library manually.