从游戏2.4
到2.5
迁移后,我们面临着废弃警告,内捻模板: ...web/templates/main.scala.html:159: method get in object Messages is deprecated: see corresponding Javadoc for more information. [warn] <a href="@routes.Authentication.login()">@Messages.get("login") </a> [warn] 1501 warnings found
禁止捻模板折旧方法警告
-deprecation
标志内scalaOptions
工作正常上课,但看起来并不影响*.scala.html
文件。 (twirlRecompilationLogger = TaskKey[(File, File) => Unit]
),但play 2.5
不包含它(play.twirl.sbt.TwirlKeys
)。
任何想法如何抑制模板内的deprecation
警告? 感谢