Yes, It seems to be related. Note the answer of Spencer.
Now Someone has to say if it is really a bug.

Cheers
Stephane

Le 22 avr. 2011 à 15:38, Szczepan Faber a écrit :

Hey

Might it be this issue: http://issues.gradle.org/browse/GRADLE-1442 ?

Cheers!
Szczepan

22-04-2011 14:27 użytkownik "Stephane Toussaint" <[email protected]> napisał:
> Hi,
>
> Maybe am I doing something wrong, but I'm facing a problem when using classifier.
>
> A snap from my build.gradle :
>
> dependencies {
> compile 'mygroup:myartifact:1.0.0-SNAPSHOT' // The jar package of my module
> testRuntime group: 'mygroup', name: 'myartifact', version: '1.0.0-SNAPSHOT', classifier: 'tests' // The test-jar package of my module
> }
>
> The myartifact module has been deployed as a jar and as a test-jar. When building my project under Intellij Idea. Everything fine. Compilation and Test are Ok.
> When running ./gradlew build or test, there is test failure, due to java.lang.NoClassDefFoundError on a class within the jar package.
>
> It seems that the test-jar package has the precedence on the jar package.
>
> What am I doing wrong ?
>
> Tested with 1.0-milestone-1 and 1.0-milestone-2
>
> Thanks
> Stephane
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>


Stéphane TOUSSAINT
XMS Technical Product Leader
Tel : 01.61.08.50.30
Std : 01.61.08.50.20
Fax : 01.61.38.24.41

Reply via email to