aboutsummaryrefslogtreecommitdiff
path: root/template/groovy/base-gradle-scala.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'template/groovy/base-gradle-scala.gradle')
-rw-r--r--template/groovy/base-gradle-scala.gradle25
1 files changed, 25 insertions, 0 deletions
diff --git a/template/groovy/base-gradle-scala.gradle b/template/groovy/base-gradle-scala.gradle
new file mode 100644
index 0000000..ce284d0
--- /dev/null
+++ b/template/groovy/base-gradle-scala.gradle
@@ -0,0 +1,25 @@
+apply {
+ plugin 'scala'
+ plugin 'eclipse'
+ plugin 'idea'
+}
+
+ext {
+ scalaVersion = '2.10'
+ specs2Version = '2.3.8'
+}
+
+repositories {
+ mavenCentral()
+}
+
+tasks.withType(ScalaCompile) {
+ scalaCompileOptions.useCompileDaemon = false
+ scalaCompileOptions.useAnt = false
+}
+
+dependencies {
+ compile "org.scala-lang:scala-library:$scalaVersion.+"
+ testCompile "org.specs2:specs2_$scalaVersion:$specs2Version"
+ {{_cursor_}}
+}