开发者

SBT: which files to put under version control?

I created a Scala project with SBT, referencing ScalaTest. Now it has this tree:

├───lib
├───lib_managed
│   └───scala_2.9.0
│       └───compile
├───project
│   ├───boot
│   │   ├───other
│   │   │   └───net.java.dev.jna
│   │   │       └───jna
│   │   │           └───3.2.3
│   │   ├───scala-2.7.7
│   │   │   ├───lib
│   │   │   └───org.scala-tools.sbt
│   │   │       └───sbt
│   │   │           └───0.7.7
│   │   │               ├───compiler-interface-bin_2.7.7.final
│   │   │               ├───compiler-interface-bin_2.8.0.final
│   │   │               ├───compiler-interface-bin_2.8.1.final
│   │   │               ├───compiler-interface-bin_2.9.0.final
│   │   │               ├───compiler-interface-src
│   │   │               └───xsbti
│   │   └───scal开发者_JAVA技巧a-2.9.0
│   │       └───lib
│   └───build
│       └───target
│           └───scala_2.7.7
│               ├───analysis
│               └───classes
├───src
│   ├───main
│   │   ├───resources
│   │   └───scala
│   └───test
│       ├───resources
│       └───scala
└───target

In addition to src tree, which files/directories should I put under version control (now using SVN)?


For sbt 0.7, ignore the following:

lib_managed
target
project/boot
project/build/target
project/plugins/lib_managed
project/plugins/src_managed
project/plugins/target
project/plugins/project/build.properties

There's sbt 0.10.x now btw.


For xsbt 0.10+, here is my .gitignore, in my xsbt template project:

target/
project/boot/
*.jar

It is similar to the official .gitignore in the xsbt project, but Eugene's might be more complete.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜