Custom plugin - dependencies version update


(Gradle) #1

Hi,

Built a custom plugin (with a “Config” task) which derives the version for my project dependencies, but unfortunately when i refer by extension object in the dependencies, they are not referring the values updated from the custom plugin “Config” task as the project gets evaluated before the task runs.

Only way i can make that work is by adding the dependencies in a seperate task which runs after my “Config” plugin task. Is there any alternative, is there a way i can run my “Config” task as part of the project evaluate, so that dependencies blocks always have the right versions.

I see similar problem was highlighted in this link, but looks it was not answered yet