'What is the difference between ThisBuild and Global scopes?

Can someone explain me the difference between writing these 2 lines:

resolvers in ThisBuild ++= appResolvers

resolvers in Global ++= appResolvers
sbt


Solution 1:[1]

This would probably be used in a plugin:

resolvers in Global ++= appResolvers

Whereas this could appear in your build definition:

resolvers in ThisBuild ++= appResolvers

thereby letting you override global default offered by plugin.

Within the same build definition, using either one will most likely have equivalent effect, because they are the bottom two in the delegates list.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Renat Bekbolatov