Build.scala, % and %% symbols meaning

前端 未结 2 1168
醉酒成梦
醉酒成梦 2020-11-30 19:58

I\'m new to Play! Framework 2.1 (java version) and have no experience with scala. I don\'t understand what are and what does % and %% mean in Build

2条回答
  •  失恋的感觉
    2020-11-30 20:22

    This is part of SBT which play uses as a build tool. Specifically this is an import statement.

    The percent symbol % is a actually a method used to build dependencies. The double percent sign %% injects the current Scala version - this allows you to get the correct library for the version of scala you are running. This is to avoid having to change your build file when you update Scala.

    More information here

提交回复
热议问题