[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: Re: [groovy-user] org.codehaus.groovy.modules.http-builder affects other modules, aka classpath hell
From: Bruce Edge <bruce.edge () gmail ! com>
Date: 2013-09-30 23:22:38
Message-ID: CAHWjR8Qv7WuP6guTr9pxqLUwVa4K=wC8dij9JzW8-3KREeqGyQ () mail ! gmail ! com
[Download RAW message or body]
Hi Pascal,
Thank you very much, that was exactly the problem.
-Bruce
On Sun, Sep 29, 2013 at 1:24 AM, Pascal Schumacher <PascalSchumacher@gmx.net
> wrote:
> Hello Bruce,
>
> http-builder uses (Apache Commons) httpclient, which in turn depends on
> (Apache Commons) commons-codec.
>
> I guess another your code or another dependecy depends on an newer version
> of commons-codec.
>
> You can should be able to resolve this by adding an "excluded" for
> commons-codec, e.g.:
>
> compile('org.codehaus.groovy.modules.http-builder:http-builder:0.5.2') {
> //excluding a particular transitive dependency:
> exclude module: 'commons-codec'}
>
> see
> http://www.gradle.org/docs/current/userguide/dependency_management.htmlfor details
>
> -Pascal
>
> *Gesendet:* Samstag, 28. September 2013 um 08:28 Uhr
> *Von:* "Bruce Edge" <bruce.edge@gmail.com>
> *An:* user@groovy.codehaus.org
> *Betreff:* [groovy-user] org.codehaus.groovy.modules.http-builder affects
> other modules, aka classpath hell
> This is one of those things that you say, go back and check again
> because it's so strange that you think there has to be something else
> wrong.
>
> I'm using org.codehaus.groovy.modules.http-builder in gradle, or at least
> tried to.
> If I add:
> dependencies {
> compile(group: 'org.codehaus.groovy.modules.http-builder',
> name:'http-builder', version:'0.5.2')
> }
>
> to my build.gradle, then other methods stop working claiming the
> signatures are invalid:
> eg:
> > No signature of method: static
> org.apache.commons.codec.digest.DigestUtils.sha1Hex() is applicable for
> argument types: (java.io.FileInputStream) values:
> [java.io.FileInputStream@17eb5c83]
> Possible solutions: shaHex([B), shaHex(java.lang.String), md5Hex([B),
> md5Hex(java.lang.String), sha([B), sha(java.lang.String)
>
> How does http-builder break DigestUtils?
>
> Same thing happens for a few other libs I tried for sha1 calculation.
>
> The one common thing was http-builder on the classpath. Remove it and the
> problem goes away.
>
>
> -Bruce
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> http://xircles.codehaus.org/manage_email
[Attachment #3 (text/html)]
<div dir="ltr">Hi Pascal,<div>Thank you very much, that was exactly the \
problem.</div><div><br></div><div>-Bruce</div></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 29, 2013 at 1:24 AM, \
Pascal Schumacher <span dir="ltr"><<a href="mailto:PascalSchumacher@gmx.net" \
target="_blank">PascalSchumacher@gmx.net</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div> \
<div>Hello Bruce,</div>
<div> </div>
<div>http-builder uses (Apache Commons) httpclient, which in turn depends on (Apache \
Commons) commons-codec.</div>
<div> </div>
<div>I guess another your code or another dependecy depends on an newer version of \
commons-codec.</div>
<div> </div>
<div>You can should be able to resolve this by adding an "excluded" for \
commons-codec, e.g.:</div>
<div>
<pre><code><span>compile</span><span>(</span><span>'</span></code>org.codehaus.gro \
ovy.modules.http-builder<code><span>:</span></code>http-builder<code><span>:0.5.2'</span><span>)</span><span> \
</span><span>{</span><span>
</span><span>//excluding a particular transitive dependency:</span><span>
exclude </span></code><code><span>module</span><span>:</span><span> \
</span><span>'</span></code>commons-codec<code><span>'</span><span> \
</span><span>}</span></code></pre> </div>
<div>
<div>see <a href="http://www.gradle.org/docs/current/userguide/dependency_management.html" \
target="_blank">http://www.gradle.org/docs/current/userguide/dependency_management.html</a> \
for details</div>
<div> </div>
<div>-Pascal</div>
<div> </div>
<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0 10px \
10px;border-left:2px solid #c3d9e5;word-wrap:break-word"> <div style="margin:0 0 10px \
0"><b>Gesendet:</b> Samstag, 28. September 2013 um 08:28 Uhr<br> <b>Von:</b> \
"Bruce Edge" <<a href="mailto:bruce.edge@gmail.com" \
target="_blank">bruce.edge@gmail.com</a>><br> <b>An:</b> <a \
href="mailto:user@groovy.codehaus.org" \
target="_blank">user@groovy.codehaus.org</a><br> <b>Betreff:</b> [groovy-user] \
org.codehaus.groovy.modules.http-builder affects other modules, aka classpath \
hell</div><div><div class="h5">
<div name="quoted-content">
<div>This is one of those things that you say, go back and check again because \
it's so strange that you think there has to be something else wrong. <div> </div>
<div>I'm using org.codehaus.groovy.modules.http-builder in gradle, or at least \
tried to. </div>
<div>If I add:</div>
<div>
<div>dependencies {</div>
<div> compile(group: 'org.codehaus.groovy.modules.http-builder', \
name:'http-builder', version:'0.5.2')</div> </div>
<div>}</div>
<div> </div>
<div>to my build.gradle, then other methods stop working claiming the signatures are \
invalid:</div>
<div>
<div>eg:</div>
<div>> No signature of method: static \
org.apache.commons.codec.digest.DigestUtils.sha1Hex() is applicable for argument \
types: (java.io.FileInputStream) values: [java.io.FileInputStream@17eb5c83]</div>
<div> Possible solutions: shaHex([B), shaHex(java.lang.String), md5Hex([B), \
md5Hex(java.lang.String), sha([B), sha(java.lang.String)</div> </div>
<div> </div>
<div>How does http-builder break DigestUtils?</div>
<div> </div>
<div>Same thing happens for a few other libs I tried for sha1 calculation.</div>
<div> </div>
<div>The one common thing was http-builder on the classpath. Remove it and the \
problem goes away.</div>
<div> </div>
<div> </div>
<div>-Bruce</div>
</div>
</div>
</div></div></div>
</div>
</div></div></div>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
<a href="http://xircles.codehaus.org/manage_email" \
target="_blank">http://xircles.codehaus.org/manage_email</a>
</blockquote></div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic