aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorKatsunori Kanda <potix2@gmail.com>2013-11-15 08:15:59 +0900
committerKatsunori Kanda <potix2@gmail.com>2014-03-05 11:54:34 +0900
commit573cc92ae32052f8c59265b9334c138e15020413 (patch)
tree7ac3ad682b5f2988ab0e24f9eeb55bc3a9a485a5 /template
parent4c5bc730fce163ecdcd4c2bf39526461605a9694 (diff)
downloadvim-sonictemplate-573cc92ae32052f8c59265b9334c138e15020413.tar.gz
vim-sonictemplate-573cc92ae32052f8c59265b9334c138e15020413.tar.bz2
vim-sonictemplate-573cc92ae32052f8c59265b9334c138e15020413.zip
Add gradle template
Diffstat (limited to 'template')
-rw-r--r--template/groovy/base-gradle-java.gradle14
-rw-r--r--template/groovy/base-gradle-scala.gradle25
2 files changed, 39 insertions, 0 deletions
diff --git a/template/groovy/base-gradle-java.gradle b/template/groovy/base-gradle-java.gradle
new file mode 100644
index 0000000..ce82912
--- /dev/null
+++ b/template/groovy/base-gradle-java.gradle
@@ -0,0 +1,14 @@
+apply {
+ plugin 'java'
+ plugin 'eclipse'
+ plugin 'idea'
+}
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ testCompile 'junit:junit:4.+'
+ {{_cursor_}}
+}
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_}}
+}