Skip to content

SBT & SBT with eclipse

Awantik Das edited this page Mar 23, 2018 · 1 revision
  1. Install sbt

  2. Gt to .sbt inside C:/User/Zekelabs/.sbt

  3. Create a plugins dir insode e.g 0.13 director

  4. Create plugins.sbt inside plugins

  5. Add below line to plugins.sbt file addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0") This enables sbt project to be used by eclipse OR 'sbt eclipse' will throw error

  6. Now Create scala project folder - MyProj

  7. Create src/main/scala inside this

  8. Create object class file with main or extends App

  9. Create build.sbt in proj dir name := "Hello IBM"

version := "1.0"

scalaVersion := "2.11.11"

  1. Go to project dir & do sbt package to create jar
Clone this wiki locally