From 08fccee8e771da8c630b74902a5ce3a8a8e133e4 Mon Sep 17 00:00:00 2001 From: ujihisa Date: Sun, 16 Jun 2013 16:20:23 -0700 Subject: [PATCH] Added groovy snip. --- autoload/neosnippet/snippets/groovy.snip | 29 ++++++++++++++++++++++++ doc/neosnippet.txt | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 autoload/neosnippet/snippets/groovy.snip diff --git a/autoload/neosnippet/snippets/groovy.snip b/autoload/neosnippet/snippets/groovy.snip new file mode 100644 index 0000000..b741379 --- /dev/null +++ b/autoload/neosnippet/snippets/groovy.snip @@ -0,0 +1,29 @@ +snippet helloworld +options head + package ${1:com.github.ujihisa} + + class ${2:TARGET} { + public static void main(String[] args) { + println("Hello world!") + } + } + +snippet gradle +options head + apply plugin: 'groovy' + apply plugin: 'maven' + + repositories { + mavenCentral() + ${2:mavenLocal()} + } + + dependencies { + compile 'org.codehaus.groovy:groovy-all:2.1.1' + //testCompile group: 'junit', name: 'junit', version: '4.+' + } + + jar { + from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + } + manifest.mainAttributes("Main-Class": "${1:com.github.`$USER`.}") diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 780985d..7820251 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -722,6 +722,9 @@ A: You can use |:NeoSnippetSource| for it. ============================================================================== CHANGELOG *neosnippet-changelog* +2013-06-16 +- Added groovy snip. + 2013-06-10 - Added sshconfig snip. - Added Makefile snip.