Trigger artifactory download from settings.gradle

(Brian Brooks) #1

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

Any help would be appreciated.