Discussion:
Test dependencies not keeped at test runtime ?
Peter Niederwieser
2011-09-07 04:27:08 UTC
Permalink
Do you have an idea, why ContextualMessageExchangeFactoryImpl class isn't
found at the runtime of my test ?
Have you checked if the class is actually contained in the Jar (jar -tf <jar
filename> | grep <class name>)? Or maybe there is a class loader issue with
your test.

--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw


--
View this message in context: http://gradle.1045684.n5.nabble.com/Test-dependencies-not-keeped-at-test-runtime-tp4773771p4777189.html
Sent from the gradle-user mailing list archive at Nabble.com.
Peter Niederwieser
2011-09-09 04:19:08 UTC
Permalink
Two previous dependencies overload each other ? How I can include the
com.ebmwebsourcing.easycommons:easycommons-logger jar and test-jar
together ?
You can't; it's a known issue. I recommend to use two different module names
rather than different classifiers.

PS: For a new question, please start a new thread.

--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw


--
View this message in context: http://gradle.1045684.n5.nabble.com/Test-dependencies-not-keeped-at-test-runtime-tp4773771p4784994.html
Sent from the gradle-user mailing list archive at Nabble.com.
Peter Niederwieser
2011-09-09 04:20:09 UTC
Permalink
I think it's a classloader issue as you say, but classloader issues were
already appear ?
I don't understand what you are trying to say/ask.

--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw


--
View this message in context: http://gradle.1045684.n5.nabble.com/Test-dependencies-not-keeped-at-test-runtime-tp4773771p4784996.html
Sent from the gradle-user mailing list archive at Nabble.com.
adryen31200
2011-09-09 06:21:15 UTC
Permalink
Thank Peter for your help, but when you say two different module names you
mean I should change:
"com.ebmwebsourcing.easycommons:easycommons-logger:1.0-SNAPSHOT:***@jar"
by
"com.ebmwebsourcing.easycommons:easycommons-logger-2:1.0-SNAPSHOT:***@jar"
If I want to include "com.ebmwebsourcing.easycommons:easycommons-***@jar"
also ? for Example

--
View this message in context: http://gradle.1045684.n5.nabble.com/Test-dependencies-not-keeped-at-test-runtime-tp4773771p4785165.html
Sent from the gradle-user mailing list archive at Nabble.com.
Peter Niederwieser
2011-09-10 04:20:14 UTC
Permalink
I'm saying that instead of jbi-adapter-impl-1.0-SNAPSHOT.jar and
jbi-adapter-impl-1.0-SNAPSHOT-tests.jar, you should produce
jbi-adapter-impl-1.0-SNAPSHOT.jar and
jbi-adapter-impl-tests-1.0-SNAPSHOT.jar. In other words, don't use
classifiers but use different module names. Of course this is only an option
if these are your own modules.

--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Post by adryen31200
Thank Peter for your help, but when you say two different module names you
by
If I want to include
--
View this message in context: http://gradle.1045684.n5.nabble.com/Test-dependencies-not-keeped-at-test-runtime-tp4773771p4788692.html
Sent from the gradle-user mailing list archive at Nabble.com.
Peter Niederwieser
2013-10-01 09:00:37 UTC
Permalink
This list is no longer active. Please use http://forums.gradle.org instead.



--
View this message in context: http://gradle.1045684.n5.nabble.com/Test-dependencies-not-keeped-at-test-runtime-tp4773771p5711912.html
Sent from the gradle-user mailing list archive at Nabble.com.

Loading...