I need to add a dependency (test-jar, from log4j), but I don’t know what is the correct syntax in gradle to include it in the compile("…") config step.
I need to specify the classifier and the type, but in the compile step I can only specify :group :name :version.
The classifier can be added to end after the version: org.apache.logging.log4j:log4j-api:2.10.0:tests.
There isn’t a “type” in Maven coordinates. There’s packaging, but even that “test-jar” is still a jar. It’s log4j-api-2.10.0-tests.jar, not log4j-api-2.10.0-tests.test-jar, and jar is the default packaging.