title: Lightweight Groovy persistence
body: <p>What are some lightweight options for persistence in Groovy? I've considered serialization and XML so far but I want something a bit more robust than those, at least so I don't have to rewrite the entire file every time. Ideally, it would:</p>
  
  <ul>
  <li>Require no JARs in classpath, using Grapes instead</li>
  <li>Require no external processes, administration, or authentication (so all embedded)</li>
  <li>Support locking</li>
  </ul>
  
  <p>I plan on using it to cache some information between runs of a standalone Groovy script. I imagine responses will focus around SQL and NoSQL databases. Links to pages demonstrating this usage would be appreciated. Thanks!</p>