Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要定义一个项目,我会
project in file(".")
file(".")与设置相对的功能是什么baseDirectory?
file(".")
baseDirectory
例如,两者之间有什么区别
lazy val myProject = project in file("foo")
和
lazy val myProject = (project in file(".")).settings( baseDirectory := file("foo"))
project in file(...)对于项目来说,使用和设置baseDirectory自己没有区别。用来show baseDirectory说服自己:)
project in file(...)
show baseDirectory
但是,由于baseDirectory是一个设置,它可以用于任何范围,例如,您可以为特定配置或任务设置基本目录。