Could you please clarify your use case? You should never need to resolve a dependency during Execution but Configuration phase and wire the dependency, eg the jar, as task property.
c
Charbel Sadaka
12/27/2023, 4:17 PM
Can you please show me an example
Charbel Sadaka
12/27/2023, 4:18 PM
Indeed, at configuration phase
p
Philip W
12/27/2023, 4:19 PM
Just create a resolvable configuration extending a dependency scope one and wire the configuration as a configurablefilecollection/RegularFileProperty/Provider<File> as task input