gradle dependency with classifier
gradle dependency with classifier
I am using gradle version 4.6:
in dependencies I add this:
testCompile "com.kuku:kuku:1.0:tests"
also tried this and same:
testCompile group: "com.kuku", name: "kuku", version: "1.0", classifier: "tests"
then gradle throw error:
Could not resolve all files for configuration ':testCompileClasspath'.
Could not find kuku-tests.jar (project :serializer_v9).
what I am doing wrong? needless to say I see the kuku tests jar in the build directory
testCompile files("kuku-tests.jar")
@Chocolord this will work in some cases when the kuku project is in my file system, but when it is not it will not work...
– igreenfield
Sep 3 at 7:59
1 Answer
1
So I found that the problem is Gradle includeBuild does not support yet publication that does not default: here
So the only way is to create separate jar with the test classes
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Have you tried this notation:
testCompile files("kuku-tests.jar")
, founded here in the gradle documentation: Declaring Dependencies– Chocolord
Aug 30 at 8:15