[GRADLE-67] Classifiers not supported Created: 25/Apr/08  Updated: 21/Jan/17  Resolved: 25/Apr/08

Status: Resolved
Project: Gradle
Affects Version/s: 0.1.2
Fix Version/s: 0.1.3

Type: Bug
Reporter: Russel Winder Assignee: Hans Dockter
Resolution: Duplicate Votes: 0

Issue Links:
Duplicate
Duplicates GRADLE-59 Allow classifiers to be added to a de... Resolved

 Description   

I am trying to use TestNG as the unit test framework for a simple Java jar project. There appears to be no way of using the TestNG jar since it requires a classifier in the dependency specification.



 Comments   
Comment by Hans Dockter [ 25/Apr/08 ]

See the linked issue for a workaround

Comment by Russel Winder [ 25/Apr/08 ]

Apologies, I thought I had done a search for this being a duplicate issue. I failed.

I have to say though that the workaround is not great. The Ivy people just need to fix this issue asap – it isn't really a Gradle issue is it.

Comment by Hans Dockter [ 25/Apr/08 ]

I agree, the workaround is not nice. Therefore the issue is scheduled for 0.1.3.

I think Ivy supports classifiers via extra attributes. But you have to change the url pattern of the resolver to make this work. I'm not sure. I have to investigate further next week.

Comment by Russel Winder [ 17/Jun/08 ]

"org.testng:testng:5.8:jdk15@jar" works fine as of 2008-06-17.

Comment by Chao Zhang [ 21/Jan/17 ]

current grandel version 2.13 or 3.3

compile group: 'com.offbytwo.jenkins', name: 'jenkins-client', version: '0.3.7'

http://repo1.maven.org/maven2/com/offbytwo/jenkins/jenkins-client/0.3.7/jenkins-client-0.3.7.pom

D:\daydao-code\dayhr-patchManager>gradle clean build -x test
:clean UP-TO-DATE
:compileJava FAILED

FAILURE: Build failed with an exception.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.132 secs

Generated at Wed Jun 30 11:21:09 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.