sbt version varies per project directory, on the same OS -
when run sbt
on 1 project directory, issues detected sbt version 0.12.1
when starting off.
typing about
, repeats version.
however, running sbt
in different project directory identifies version 0.11.3
.
this reproduces within same terminal session. version varies per project directory. couldn't find explicit part in build.sbt file cause this.
what explain this?
in case i'd use sbt 0.12.1 in both cases, how can force version being used later project?
the project sbt multi-project , since each subproject separate project can use project/build.properties
set different versions of sbt. command project-specific.
jacek:~/sandbox/stackoverflow $ mkdir sbt-sample-project jacek:~/sandbox/stackoverflow $ cd sbt-sample-project jacek:~/sandbox/stackoverflow/sbt-sample-project $ tree . 0 directories, 0 files jacek:~/sandbox/stackoverflow/sbt-sample-project $ sbt [info] loading global plugins /users/jacek/.sbt/0.13/plugins [info] set current project sbt-sample-project (in build file:/users/jacek/sandbox/stackoverflow/sbt-sample-project/) [info] sbt 0.13.0 [info] current project {file:/users/jacek/sandbox/stackoverflow/sbt-sample-project/}sbt-sample-project 0.1-snapshot [info] current project built against scala 2.10.2 [info] available plugins: com.typesafe.sbt.sbtgit, com.typesafe.sbt.sbtproguard, growl.growlingtests, org.sbtidea.sbtideaplugin, com.timushev.sbt.updates.updatesplugin [info] sbt, sbt plugins, , build definitions using scala 2.10.2 jacek:~/sandbox/stackoverflow/sbt-sample-project $ mkdir project jacek:~/sandbox/stackoverflow/sbt-sample-project $ echo "sbt.version=0.13.1-rc5" > project/build.properties jacek:~/sandbox/stackoverflow/sbt-sample-project $ sbt [info] loading global plugins /users/jacek/.sbt/0.13/plugins [info] updating {file:/users/jacek/.sbt/0.13/plugins/}global-plugins... [info] resolving org.fusesource.jansi#jansi;1.4 ... [info] done updating. [info] loading project definition /users/jacek/sandbox/stackoverflow/sbt-sample-project/project [info] updating {file:/users/jacek/sandbox/stackoverflow/sbt-sample-project/project/}sbt-sample-project-build... [info] resolving org.fusesource.jansi#jansi;1.4 ... [info] done updating. [info] set current project sbt-sample-project (in build file:/users/jacek/sandbox/stackoverflow/sbt-sample-project/) [info] sbt 0.13.1-rc5 [info] current project {file:/users/jacek/sandbox/stackoverflow/sbt-sample-project/}sbt-sample-project 0.1-snapshot [info] current project built against scala 2.10.3 [info] available plugins: com.typesafe.sbt.sbtgit, com.typesafe.sbt.sbtproguard, growl.growlingtests, org.sbtidea.sbtideaplugin, com.timushev.sbt.updates.updatesplugin [info] sbt, sbt plugins, , build definitions using scala 2.10.3
Comments
Post a Comment