sbtはじめまして
Build.scalaのサンプルを探してたら良いのがあった!
https://github.com/harrah/xsbt/wiki/Full-Configuration-Example
Build.scalaがあるとbuild.sbtはなくても良いらしい。
んで、ついでにマルチプロジェクトもここに書いてた。
一カ所に依存関係やらを全部かけるのはそれはそれで良いね。
resources filter
オフィシャルには情報がない。
https://github.com/sdb/xsbt-filter
https://github.com/rollinsruss/xsbt-filter-plugin
なんか・・・作成中って感じ。
問題はEclipseと組み合わせたときはフィルターしてくれないんじゃないか!?ってことかな
個別にディレクトリ作って設定で切り替えるのが良いのかな
Mavenのprofile相当のこと
実装はscalaなんだから勝手にやれってことらしい。ある意味わかりやすいw
コンパイルオプション
javacOptions ++= Seq("-source", "1.5")
ついでなので、実行環境の切り替え時
https://github.com/harrah/xsbt/wiki/Forking
プラグインの探し方等々
https://github.com/harrah/xsbt/wiki/sbt-0.10-plugins-list
ローカルのリポジトリにpublishする
publishTo <<= (version) { version: String => val nexus = "http://nexus.scala-tools.org/content/repositories/" if (version.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "snapshots/") else Some("releases" at nexus + "releases/") }
通ると良いなぁ〜HTTP Proxy
java -Dhttp.proxyHost=myproxy -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=mypassword
残りTODO