Modified cast to avoid GroovyRuntimeException when using a proxy without username/password due to overlapping prototypes in BasicAuthenticationManager.getProxy methods.
Caused by: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.tmatesoft.svn.core.auth.BasicAuthenticationManager#setProxy.
Cannot resolve which method to invoke for [class java.lang.String, class java.lang.Integer, null, null] due to overlapping prototypes between:
[class java.lang.String, int, class java.lang.String, class [C]
[class java.lang.String, int, class java.lang.String, class java.lang.String]
at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3241)
at groovy.lang.MetaClassImpl.chooseMethodInternal(MetaClassImpl.java:3194)
at groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:3137)
at groovy.lang.MetaClassImpl.getMethodWithCachingInternal(MetaClassImpl.java:1328)
at groovy.lang.MetaClassImpl.createPojoCallSite(MetaClassImpl.java:3370)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPojoSite(CallSiteArray.java:132)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:166)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149)
at at.bxm.gradleplugins.svntools.internal.SvnSupport.createAuthenticationManager(SvnSupport.groovy:34)
at at.bxm.gradleplugins.svntools.internal.SvnSupport$createAuthenticationManager$1.callStatic(UnknownSource)
at at.bxm.gradleplugins.svntools.internal.SvnSupport.createSvnClientManager(SvnSupport.groovy:27)
at at.bxm.gradleplugins.svntools.internal.SvnSupport$createSvnClientManager$0.callStatic(UnknownSource)
at at.bxm.gradleplugins.svntools.internal.SvnSupport.createSvnData(SvnSupport.groovy:42)
Modified cast to avoid GroovyRuntimeException when using a proxy without username/password due to overlapping prototypes in BasicAuthenticationManager.getProxy methods.
Caused by: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.tmatesoft.svn.core.auth.BasicAuthenticationManager#setProxy. Cannot resolve which method to invoke for [class java.lang.String, class java.lang.Integer, null, null] due to overlapping prototypes between: [class java.lang.String, int, class java.lang.String, class [C] [class java.lang.String, int, class java.lang.String, class java.lang.String] at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3241) at groovy.lang.MetaClassImpl.chooseMethodInternal(MetaClassImpl.java:3194) at groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:3137) at groovy.lang.MetaClassImpl.getMethodWithCachingInternal(MetaClassImpl.java:1328) at groovy.lang.MetaClassImpl.createPojoCallSite(MetaClassImpl.java:3370) at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPojoSite(CallSiteArray.java:132) at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:166) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149) at at.bxm.gradleplugins.svntools.internal.SvnSupport.createAuthenticationManager(SvnSupport.groovy:34) at at.bxm.gradleplugins.svntools.internal.SvnSupport$createAuthenticationManager$1.callStatic(UnknownSource) at at.bxm.gradleplugins.svntools.internal.SvnSupport.createSvnClientManager(SvnSupport.groovy:27) at at.bxm.gradleplugins.svntools.internal.SvnSupport$createSvnClientManager$0.callStatic(UnknownSource) at at.bxm.gradleplugins.svntools.internal.SvnSupport.createSvnData(SvnSupport.groovy:42)