in the latest gradle how should I add java compile...
# community-support
c
in the latest gradle how should I add java compiler arguments considering 1. I don't know where else I might be modifying them 2. bonus points for only adding them when a given dependency is present. I noticed a providers option, but I'm also not entirely certain on the best way to handle 2.
t
CommandLineArgumentProviders can have `@Input`s, so if you can get it whether or not the dependency is present (ResolvedArtifactResult or ResolvedComponentResult), then it can decide what to return from its asArguments(): either an empty list or the expected arguments.
👆 1