Trigger artifactory download from settings.gradle

The build.gradle script I’m using triggers a gradle plugin P in settings.gradle via a line like:

apply from: new File(rootDir, "${bnd_cnf}/gradle/template/init.gradle")

Regrettably, P expects some JAR files to be in some directory D. I’m trying to avoid committing the JAR files to Subversion. So I’d like to “auto-magically” download the JAR files from Artifactory.

I already know how to “normally” download dependencies from artifact when the activity is part of the build.gradle. The challenge is I’m not sure how to download a file in the midst of settings.gradle executing.

I’ve tried various things but nothing seems to work. I’ve read through https://docs.gradle.org/current/userguide/dependency_management.html
http://gradle.1045684.n5.nabble.com/extracting-tar-contents-via-dependencies-td3412210.html

Any help would be appreciated.