Permalink
Browse files

0.7.9

* Updated MongoDB Java driver to *2.9* (aggregation framework)
* Some scripts refactoring
  • Loading branch information...
1 parent 8d715d4 commit be3ac7ca94fdf9220909d1ee5c74b2949c951521 @jkuehn committed Aug 31, 2012
View
@@ -2,6 +2,9 @@ h2. Change Log
Also see the "release notes of underlying morphia library":http://code.google.com/p/morphia/wiki/ReleaseNotes and the GORM-MongoDB "User Guide":http://jkuehn.github.com/gorm-mongodb/
+h3. v0.7.9 - 2012-08-31
+* Updated MongoDB Java driver to *2.9* (aggregation framework)
+
h3. v0.7.8 - 2012-02-24
* ast-transformations fix
@@ -20,7 +20,7 @@ class MongodbMorphiaGrailsPlugin {
def scm = [ url: "https://github.com/jkuehn/gorm-mongodb" ]
// the plugin version
- def version = "0.7.8"
+ def version = "0.7.9"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.3.4 > *"
// the other plugins this plugin depends on
@@ -2,7 +2,7 @@
#Thu Feb 23 13:02:27 CET 2012
app.grails.version=2.0.0
app.name=mongodb-morphia
-app.version=0.7.8
+app.version=0.7.9
plugins.release=1.0.1
plugins.svn=1.0.2
plugins.tomcat=2.0.0
@@ -1,4 +1,5 @@
grails.release.scm.enabled = false
+grails.project.source.level = 1.6
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
View
Binary file not shown.
Binary file not shown.
View
@@ -1,4 +1,4 @@
-<plugin name='mongodb-morphia' version='0.7.8' grailsVersion='1.3.4 &gt; *'>
+<plugin name='mongodb-morphia' version='0.7.9' grailsVersion='1.3.4 &gt; *'>
<author>Juri Kuehn</author>
<authorEmail>juri.kuehn at gmail.com</authorEmail>
<title>Alternative MongoDB GORM based on the Morphia library</title>
@@ -0,0 +1,44 @@
+/**
+ * Build an ast transformations jar right away
+ */
+
+includeTargets << grailsScript("_GrailsClean")
+includeTargets << grailsScript("_GrailsCompile")
+
+
+// Because we make use of ASTTransformations, make sure that everything is clean
+// after installing the plugin.
+cleanAll()
+
+/**
+ * build ast jar
+ */
+def pluginDir = mongodbMorphiaPluginDir
+if (pluginDir) {
+
+ def mongoAstSrcDir = new File("${mongodbMorphiaPluginDir}/src/groovy/grails/plugins/mongodb/ast")
+ def mongoAstBuildDir = new File(((String)grailsSettings.grailsVersion).startsWith("1")?grailsSettings.pluginClassesDir:grailsSettings.pluginBuildClassesDir, "ast")
+ def mongoAstDestDir = new File(pluginDir, "lib")
+
+ // create work dir
+ ant.mkdir(dir:mongoAstBuildDir)
+
+ // compile ast classes
+ ant.groovyc(destdir: mongoAstBuildDir, encoding: "UTF-8", classpathref:"grails.compile.classpath") {
+ src(path: mongoAstSrcDir)
+ }
+
+ // add service descriptor
+ ant.copy(todir:new File(mongoAstBuildDir, 'META-INF')) {
+ fileset dir:"${mongoAstSrcDir}/META-INF"
+ }
+
+ // package jar
+ ant.jar(destfile: new File(mongoAstDestDir, 'mongodb-morphia-ast.jar'), basedir: mongoAstBuildDir)
+
+ // cleanup
+ ant.delete(dir:mongoAstBuildDir)
+
+}
+
+
@@ -9,45 +9,11 @@
// ant.mkdir(dir:"${basedir}/grails-app/jobs")
//
-includeTargets << grailsScript("_GrailsClean")
-includeTargets << grailsScript("_GrailsCompile")
-
-// Because we make use of ASTTransformations, make sure that everything is clean
-// after installing the plugin.
-cleanAll()
-
-// make the mongodb domains folder
+// create the mongodb domains folder
ant.mkdir(dir:"${basedir}/grails-app/mongo")
-/**
- * build ast jar
- */
-def pluginDir = mongodbMorphiaPluginDir
-if (pluginDir) {
-
- def mongoAstSrcDir = new File("${mongodbMorphiaPluginDir}/src/groovy/grails/plugins/mongodb/ast")
- def mongoAstBuildDir = new File(((String)grailsSettings.grailsVersion).startsWith("1")?grailsSettings.pluginClassesDir:grailsSettings.pluginBuildClassesDir, "ast")
- def mongoAstDestDir = new File(pluginDir, "lib")
-
- // create work dir
- ant.mkdir(dir:mongoAstBuildDir)
-
- // compile ast classes
- ant.groovyc(destdir: mongoAstBuildDir, encoding: "UTF-8", classpathref:"grails.compile.classpath") {
- src(path: mongoAstSrcDir)
- }
-
- // add service descriptor
- ant.copy(todir:new File(mongoAstBuildDir, 'META-INF')) {
- fileset dir:"${mongoAstSrcDir}/META-INF"
- }
-
- // package jar
- ant.jar(destfile: new File(mongoAstDestDir, 'mongodb-morphia-ast.jar'), basedir: mongoAstBuildDir)
-
- // cleanup
- ant.delete(dir:mongoAstBuildDir)
+// create ast transformations jar
+includeTargets << new File ("${mongodbMorphiaPluginDir}/scripts/_BuildAst.groovy")
-}
@@ -8,3 +8,7 @@
//
// ant.mkdir(dir:"${basedir}/grails-app/jobs")
//
+
+
+// update the ast transformations jar
+includeTargets << new File("${mongodbMorphiaPluginDir}/scripts/_BuildAst.groovy")
@@ -45,7 +45,7 @@ Parameters:
* @id@ - id of the entity
* @query@ - query as used in findAll method
-* @updateOperations@ - This closure is executed within the context of morphias "UpdateOperations":http://code.google.com/p/morphia/source/browse/trunk/morphia/src/main/java/com/google/code/morphia/query/UpdateOperations.java
+* @updateOperations@ - This closure is executed within the context of morphias "UpdateOperations":http://morphia.googlecode.com/svn/site/morphia/apidocs/index.html
* @createIfAbsent@ - If set to true, flieds that are not present in entity will be created
* @wc@ - A WriteConcern object which configures the write strategy for the update operation

0 comments on commit be3ac7c

Please sign in to comment.