Permalink
Browse files

added src/example/groovy source set, added Example.groovy

  • Loading branch information...
1 parent ee95c9b commit 1b610e7b72c59e83e4b2da97b9e45c7c35b1a7e1 @curious-attempt-bunny committed Jan 24, 2011
Showing with 17 additions and 0 deletions.
  1. +8 −0 build.gradle
  2. +9 −0 src/example/groovy/Example.groovy
View
8 build.gradle
@@ -18,6 +18,14 @@ dependencies {
testCompile 'org.spockframework:spock-core:0.5-groovy-1.7'
}
+sourceSets {
+ example {
+ groovy {
+ srcDir = 'src/example/groovy'
+ }
+ }
+}
+
task pom << {
pom {
project {
View
9 src/example/groovy/Example.groovy
@@ -0,0 +1,9 @@
+import com.curiousattemptbunny.grouch.*
+
+grouch = new Grouch('http://localhost:5984')
+grouch.mydb.delete()
+grouch.mydb.create()
+grouch.mydb << [_id: 'mydoc', aField: 'aValue' ]
+assert grouch.mydb.mydoc.aField == 'aValue'
+
+

0 comments on commit 1b610e7

Please sign in to comment.