Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
│   │   └───scala-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)?

like image 342
onof Avatar asked Jul 18 '11 19:07

onof


1 Answers

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.

like image 138
Eugene Yokota Avatar answered Sep 28 '22 03:09

Eugene Yokota