playframework 2.0 - What is the difference between play.plugins and plugins.sbt? -


in play! app (play 2.3), see plugin enabled adding addsbtplugin entry in file project/plugins.sbt. other plugins made extending plugin trait, have add conf/play.plugins file register plugins. these 2 ways achieve same thing, or plugins declared in plugins.sbt fundamentally different extend plugin trait?

plugins.sbt plugins build, ie, sbt. loaded , run sbt when build app. example, sbt less plugin compiles less files @ build time. when deploy app, less plugin not needed, because less files have been compiled css files.

play.plugins plugins application when it's running. example, if have database plugin of sort, needs loaded , run play when app runs. it's not needed @ build time, because don't connect database when build app.

so, fundamentally different, loaded different things, implementing different interfaces, etc.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -