title: Replace a global library with a new version in Grails
body: <p>Grails comes with Protobuf 2.4.1 as a 'global dependency', but my app uses a library that compiled against Protobuf 2.5.0 (and version 2.5.0 isn't compatible with 2.4.1). </p>
  
  <p>The problem that I don't see any way to tell Grails to use only specified version instead of bundled. If I exclude it in <code>BuildConfig</code> it just excluded from application, all versions. I mean:</p>
  
  <pre><code>inherits("global") {
      excludes 'protobuf-java'
  }
  
  dependencies {
      //build 'com.google.protobuf:protobuf-java:2.5.0'
      // or
      compile 'com.google.protobuf:protobuf-java:2.5.0'
  }
  </code></pre>
  
  <p>Grails fails with: </p>
  
  <pre><code>Fatal error during compilation org.apache.tools.ant.BuildException:
     java.lang.NoClassDefFoundError: com/google/protobuf/MessageOrBuilder
  </code></pre>
  
  <p>How I can exclude global library, and add it as a new dependency instead? I'm using Grails 2.2.2</p>