make sbt eclipse project

basic project structure

-build.sbt

-project

            -build.properties

            -plugins.sbt


make sbt eclipse project_第1张图片

edit build.sbt

name :="sbttest"

version :="1.0"

scalaVersion :="2.11.8"

edit build.properties (sbt version)

view system's sbt version

sbt sbtVersion


make sbt eclipse project_第2张图片

sbt.version = 1.0.2

generate eclipse project


access the folder where the build.sbt  is located

sbt

sbt> eclipse

or specify more details

press `tab` key can automatic completion

sbt>  eclipse execution-environment=JavaSE-1.8 with-source=true

import project to  Scala IDE 

make sbt eclipse project_第3张图片

change scalaVersion (adjust your project)

scala ide 4.7 default scala version 2.12.*

make sbt eclipse project_第4张图片

Refresh project 

if build.sbt content has changed,need to run "eclipse" command  again

你可能感兴趣的:(make sbt eclipse project)