PluginDependenciesSpec and keeping version in one place


(Alex L.) #1

There is an incubating feature PluginDependenciesSpec .
Docs say:

values must be literal (e.g. constant strings, not variables)

This makes me to duplicate version everywhere I use the same plugin in multi-project build. Actually it violates DRY principle.

Are there any plans to support constants/properties in plugins {} DSL?


(James Justinic) #2

It’s been a while since I’ve seen any information on what’s soon to be implemented for the plugins DSL.

However, if your main concern is to only specify plugin versions once, you can work around this now by creating a plugin dependency resolve rule in the pluginManagement section of settings.gradle. You can then omit the version elsewhere.