- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2019-09-08T02:31:19+00:00","default:haikikyou","haikikyou") #author("2019-09-08T03:03:04+00:00","default:haikikyou","haikikyou") [[moritetuのIT関連技術メモ]] * sbteclipse [#m31eb2d6] sbteclipseを使うと、ScalaプロジェクトをEclipseプロジェクトにインポートできる。~ Eclipseのプロジェクトメタファイルを生成してくれる。 アカウント単位で有効にする。 #geshi(bash){{{ $ mkdir -p ~/.sbt/<version>/plugins $ cat <<EOF > plugins.sbt addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.4") EOF $ sbt new scala/scala-seed.g8 --name=myproject $ (cd myproject && sbt "eclipse with-source=true") }}} プロジェクト固有で有効にする。 #geshi(bash){{{ $ sbt new scala/scala-seed.g8 --name=myproject $ cat <<EOF > myproject/project/plugins.sbt addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.4") EOF $ (cd myproject && sbt "eclipse with-source=true") }}} 後は、Eclipseのメニューから、「ファイル>インポート」で対象ディレクトリを選択すれば良い。 * 参考リンク [#ea5b504b] - [[sbt 1.0 documentation>https://www.scala-sbt.org/1.x/docs/ja/index.html]] -- &size(11){&color(gray){on https://www.scala-sbt.org/1.x/docs/ja/index.html};}; - [[sbt documentation>https://www.scala-sbt.org/documentation.html]] - &size(11){&color(gray){on https://www.scala-sbt.org/documentation.html};}; -- [[sbt 1.0 documentation>https://www.scala-sbt.org/1.x/docs/ja/index.html]] -- &size(11){&color(gray){on https://www.scala-sbt.org/1.x/docs/ja/index.html};}; - [[sbteclipse >https://github.com/sbt/sbteclipse]] - &size(11){&color(gray){on https://github.com/sbt/sbteclipse};};