Why is there a build.gradle and a build.sbt in play framework?

纵然是瞬间 提交于 2020-01-14 07:28:41

问题


I'm starting to develop a web app with scala. What I don't understand is why we have a build.gradle file and a build.sbt file. There are dependencies defined in both files.

Which one should I use in what case?


回答1:


The files are equivalent, and that is why they both declare (almost) the same dependencies.

So you can use Gradle or sbt, but you won't need to use both. If you want to use Gradle, just remove build.sbt. If you want to use sbt, just remove build.gradle. They are both present in samples and seeds so that users can choose and see how to configure Gradle/sbt for that kind of project.



来源:https://stackoverflow.com/questions/48235864/why-is-there-a-build-gradle-and-a-build-sbt-in-play-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!