Grails 3.x multiple datasources
<p>Back in Grails 2.x world I could create multiple dataSources in an environment:</p>

<pre><code>development {
    dataSource {
        ...
    }
    dataSource_new {
        ...
    }
}
</code></pre>

<p>and reference them in the controller:</p>

<pre><code>def db = new SQL(dataSource_new)
</code></pre>

<p>and everything worked awesome.  In Grails 3.x, everything is not awesome:</p>

<pre><code>development:
    dataSource:
        ...
    dataSource_new:
        ...
</code></pre>

<p>and calling</p>

<pre><code>def db = new SQL(dataSource_new)
</code></pre>

<p>throws:</p>

<pre><code>Ambiguous method overloading for method groovy.sql.Sql#
</code></pre>

<p>Anyone have success with this (or can point out what's changed that I've missed)?</p>

<p>Tried mapping in domain with no luck:</p>

<pre><code>class abc {
    String ...

    static mapping = {
        datasource: ['DEFAULT', 'dataSource_new']
}
</code></pre>

<p>throws:</p>

<pre><code>Ambiguous method overloading for method groovy.sql.Sql#&lt;init&gt;. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [interface java.sql.Connection] [interface javax.sql.DataSource]
</code></pre>