The documentation describes the artifact only notation @zip (50.4.1.2). This works fine when I use the testRuntime configuration created by the Java plugin, but when I create a custom configuration, the artifact is not resolved
If I try to loop through the configuration, gradle claims it resolve the dependency, like it is simply ignoring the @zip. What do I need to do to get my configuration to resolve an artifact only dependency?
Where do you use this configuration? Configurations in gradle are lazy. this means that they are just resolved when you use them. In your snippet above you just declared that configuration, but don’t use it.
to test the resolution is correct, you can add a simple task:
Tasks to be executed: [task ‘:testResolve’] :testResolve (Thread[Daemon Thread 6,5,main]) started. :testResolve Executing task ‘:testResolve’ (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs. :testResolve FAILED :testResolve (Thread[Daemon Thread 6,5,main]) completed. Took 0.002 secs.