This message was deleted.
# community-support
s
This message was deleted.
v
CompilerArgumentProvider
or how it is called
c
Is the idea to turn the Provider(s) into a lambda that implements that?
Ah ok seems so, example tests in gradle show
Copy code
when:
        options.jvmArgumentProviders << new CommandLineArgumentProvider() {
            @Override
            Iterable<String> asArguments() {
                return ['argFromProvider1', 'argFromProvider2']
            }
        }
v
You can make it with an anonymous class like there or with a full named class, whatever suits you better. And don't forget to declare inputs on the provider so that the task can be properly out-of-date if the arguments are going to be different
c
👍