guardian/sbt-version-info-plugin — pull request #2 by daithiocrualaoich (2012-04-11 16:49:12+00:00)
Title: Bugfix play copy assets

In Play 2 applications, this plugin is breaking the play-copy-assets task.

Pass the correct scoped resourceManaged to the resourceGenerator. There
is a difference in recent SBTs between the default resourceManaged
property and the one in compile scope. A slug representing the scope is
added to the directory path.

If this slug is not taken into account, the generated version.txt file
is placed at the wrong height in the directory structure. SBT still
manages it as a managed resource but there are problems later trying
to rebase the directory prefix because there is only a rebase match for
the directory prefix with the scope slug.

Anyway, a resourceGenerator in the compile scope should use the settings
for that scope. I presume the problem here is the resourceManaged on the
right hand side is bound to the default resourceManaged at the time
this resourceGenerator is added and not dependent on the scope we are in
at the time the resourceGenerator is run. Maybe?