Sbt 0.13.8 - What is the difference between buildSettings and projectSettings?

I am writing a new plugin for 0.13.8 and I cannot figure out the difference between buildSettings

Seq and projectSettings

Seq.

Can anyone clarify?

+5


source to share


1 answer


From the docs :

With automatic plugins, all provided settings (for example assemblySettings

) are provided by the plugin directly using the method projectSettings

.



And later:

If the plugin needs to add customizations at the assembly level (that is, in ThisBuild

), this is method a buildSettings

. Parameters returned here are guaranteed to be added to a given build region only once, no matter how many projects for that build activate this AutoPlugin.

globalSettings

added once to global settings (c Global

). They allow the plugin to automatically provide new features or new defaults. One of the main ways to use this feature is to add commands globally, for example for IDE plugins.

Use globalSettings to define a default value for a parameter.

+3


source







All Articles