Skip to content

Instantly share code, notes, and snippets.

@peo3
Created January 6, 2012 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peo3/1570442 to your computer and use it in GitHub Desktop.
Save peo3/1570442 to your computer and use it in GitHub Desktop.
Scala SBT IntelliJ IDEA ScalaTest設定でやったこと
- brew install scala sbt
- mkdir -p scala/Hoge
- cd scala/Hoge
- sbt
- vim build.sbt
- cat build.sbt
name := "Hoge"
version := "0.1"
scalaVersion := "2.9.0-1"
libraryDependencies += "org.scalatest" % "scalatest_2.9.0" % "1.6.1"
- 空行が重要という。。。
- sbt reload
- mkdir -p src/main/scala
- mkdir -p src/test/scala
- IntelliJ IDEAセットアップ
- 設定(preferences)
- Plugins: scalaとsbtのplugin install
- SBT: IDE path: /usr/local/Cellar/sbt/0.10.1/libexec/sbt-launch.jar
- Editor: Allow placement of caret after end of lineのチェックオフ
- Keymap: →Emacs, Backspaceを^Hに
- あとカットコピーペースト
- 設定(File > Project Structure)
- Project: SDK 1.6
- /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment