Index: branches/features/grailsUpgrade/grails-app/conf/BootStrap.groovy
===================================================================
--- branches/features/grailsUpgrade/grails-app/conf/BootStrap.groovy	(revision 875)
+++ branches/features/grailsUpgrade/grails-app/conf/BootStrap.groovy	(revision 876)
@@ -1,16 +1,7 @@
 class BootStrap
 {
-
-    def sessionFactory // used by isDirty().
-    def grailsApplication // used by isDirty().
     def createDataService
 
     def init = { servletContext ->
-
-        /** Add isDirty() to domainClasses.
-        * @todo remove after upgrading to Grails-1.3 >.
-        * See: http://grails.1312388.n4.nabble.com/beforeUpdate-Compare-with-previous-set-value-isDirty-not-working-in-Events-td1695661.html
-        */
-        addDirtyCheckMethods()
 
         /** Environment specific settings.
@@ -46,76 +37,3 @@
     }
 
-   private void addDirtyCheckMethods() {
-      for (dc in grailsApplication.domainClasses) {
-         addDirtyCheckMethods dc.clazz.metaClass
-      }
-   }
-
-    private void addDirtyCheckMethods(metaClass) {
-      metaClass.isDirty = { ->
-         def session = sessionFactory.currentSession
-         def entry = findEntityEntry(delegate, session)
-         if (!entry) {
-            return false
-         }
-
-         Object[] values = entry.persister.getPropertyValues(delegate, session.entityMode)
-         def dirtyProperties = entry.persister.findDirty(values, entry.loadedState, delegate, session)
-         return dirtyProperties != null
-      }
-
-      metaClass.isDirty = { String fieldName ->
-         def session = sessionFactory.currentSession
-         def entry = findEntityEntry(delegate, session)
-         if (!entry) {
-            return false
-         }
-
-         Object[] values = entry.persister.getPropertyValues(delegate, session.entityMode)
-         int[] dirtyProperties = entry.persister.findDirty(values, entry.loadedState, delegate, session)
-         int fieldIndex = entry.persister.propertyNames.findIndexOf { fieldName == it }
-         return fieldIndex in dirtyProperties
-      }
-
-      metaClass.getDirtyPropertyNames = { ->
-         def session = sessionFactory.currentSession
-         def entry = findEntityEntry(delegate, session)
-         if (!entry) {
-            return []
-         }
-
-         Object[] values = entry.persister.getPropertyValues(delegate, session.entityMode)
-         int[] dirtyProperties = entry.persister.findDirty(values, entry.loadedState, delegate, session)
-         def names = []
-         for (index in dirtyProperties) {
-            names << entry.persister.propertyNames[index]
-         }
-         names
-      }
-
-      metaClass.getPersistentValue = { String fieldName ->
-         def session = sessionFactory.currentSession
-         def entry = findEntityEntry(delegate, session, false)
-         if (!entry) {
-            return null
-         }
-
-         int fieldIndex = entry.persister.propertyNames.findIndexOf { fieldName == it }
-         return fieldIndex == -1 ? null : entry.loadedState[fieldIndex]
-      }
-   }
-
-   private findEntityEntry(instance, session, boolean forDirtyCheck = true) {
-      def entry = session.persistenceContext.getEntry(instance)
-      if (!entry) {
-         return null
-      }
-
-      if (forDirtyCheck && !entry.requiresDirtyCheck(instance) && entry.loadedState) {
-         return null
-      }
-
-      entry
-   }
-
 } // end class
Index: branches/features/grailsUpgrade/grails-app/conf/BuildConfig.groovy
===================================================================
--- branches/features/grailsUpgrade/grails-app/conf/BuildConfig.groovy	(revision 875)
+++ branches/features/grailsUpgrade/grails-app/conf/BuildConfig.groovy	(revision 876)
@@ -29,13 +29,4 @@
     delete file: "${stagingDir}/WEB-INF/lib/poi-3.0.2-FINAL-20080204.jar"
     delete file: "${stagingDir}/WEB-INF/lib/facebook-2.0.4.jar"
-    // Included by searchable plugin.
-    delete file: "${stagingDir}/WEB-INF/lib/compass-2.1.0.jar"
-    delete file: "${stagingDir}/WEB-INF/lib/compass-2.1.0-src.jar"
-    delete file: "${stagingDir}/WEB-INF/lib/lucene-core.jar"
-    delete file: "${stagingDir}/WEB-INF/lib/lucene-analyzers.jar"
-    delete file: "${stagingDir}/WEB-INF/lib/lucene-highlighter.jar"
-    delete file: "${stagingDir}/WEB-INF/lib/lucene-queries.jar"
-    delete file: "${stagingDir}/WEB-INF/lib/lucene-snowball.jar"
-    delete file: "${stagingDir}/WEB-INF/lib/lucene-spellchecker.jar"
 }
 
@@ -51,6 +42,7 @@
 
     repositories {
+        grailsHome()
         grailsPlugins()
-        grailsHome()
+        grailsCentral()
 
         // uncomment the below to enable remote dependency resolution
@@ -77,12 +69,4 @@
         }
 
-        runtime ('org.compass-project:compass:2.1.4')
-        runtime ('org.apache.lucene:lucene-core:2.4.1')
-        runtime ('org.apache.lucene:lucene-analyzers:2.4.1')
-        runtime ('org.apache.lucene:lucene-highlighter:2.4.1')
-        runtime ('org.apache.lucene:lucene-queries:2.4.1')
-        runtime ('org.apache.lucene:lucene-snowball:2.4.1')
-        runtime ('org.apache.lucene:lucene-spellchecker:2.4.1')
-
         runtime ('org.apache.ant:ant:1.7.1')
         runtime ('org.apache.ant:ant-launcher:1.7.1')
