Turns out the answer is to use the correct sbt
syntax.
The code listed in the question is generating configuration for the build, but not assigning it anywhere. I believed the :=
replaced the global config for the resolvers
key, but it does not.
Putting the following in project/Build.scala
forced the Play app to resolve dependencies from our internal Nexus:
val nexusResolvers = resolvers := Seq(
"Maven Central (proxy)" at "http://repo-1/nexus/content/repositories/central/",
"Typesafe (proxy)" at "http://repo-1/nexus/content/repositories/typesafe-releases/",
// some more internal Nexus repositories
)
Note assigning the result of resolvers :=
to a new val, which is then added to the settings of the project in the same file:
val main = PlayProject(...)
.settings(nexusResolvers: _*)
Also, got rid of the sbtResolver
and externalResolvers
parts of the config, which had no effect.