now it seems that this closure is evaluated immediately, which means that the dependencies.resolve call is executed before the dependencies are actually set, so I just get a blank list of dependencies.
How should I be including my dependencies in a bundle/archive?
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Build aborted abnormally. Run with -s option to get stacktrace. Run with -d option to get all debug info including stacktrace.
org.gradle.api.GradleException: Not all dependencies could be resolved! Buildscript=build_gradle in line(s): 24 22 18
Ah, so I've managed to get this working, kind of. The problem I'm hitting now is that when I resolve the dependencies I get a failure on a sibling project:
module not found: miniweb#ImageTranscoderCore;1.0.1-SNAPSHOT
==== clientModule: tried
==== build-resolver: tried
Ok, so it turns out that to get this to work I need to setup a closure that gets executed when the task is executed, not when the project file is evaluated.