It's not clear from the README, but when using a Scala dependency, the author must be sure to append the Scala version explicitly, e.g.
javaAgents += "com.example" % "somelibrary_2.12" % "1.2.3" % "compile;runtime"
Using the %% syntax instead of _2.12 will appear to work, but the java agent will not be resolved, and the -javaagent parameter won't be provided.
I can think of a few remediations:
- Allow
%% to be used, which fixes the issue.
- Document that
%% is not supported and update the README.
Either way, I think the plugin should print a warning or error when agents are not resolved: silent failure is frustrating and harder to debug.
It's not clear from the README, but when using a Scala dependency, the author must be sure to append the Scala version explicitly, e.g.
Using the
%%syntax instead of_2.12will appear to work, but the java agent will not be resolved, and the-javaagentparameter won't be provided.I can think of a few remediations:
%%to be used, which fixes the issue.%%is not supported and update the README.Either way, I think the plugin should print a warning or error when agents are not resolved: silent failure is frustrating and harder to debug.