scala - Define scalaVersion setting for RootProject under git in SBT -
in project, want use code github. dependency defined in build.scala
follows:
object buildsettings { val buildversion = "1.0-snapshot" val buildscalaversion = "2.9.1" val buildname = "pageanalyzer" val buildsettings = defaults.defaultsettings ++ seq ( organization := buildorganization, version := buildversion, scalaversion := buildscalaversion, name := buildname ) } object pageanalyzerbuild extends build { lazy val root = project ( "root", file ("."), settings = buildsettings.buildsettings ) dependson (depproject) val depproject = rootproject(uri("git://github.com/me/some.git")) }
for reasons, have build root project scala 2.9.x. in sbt 0.13, depproject
build 2.10.x , dependency cannot build. root
project tries some_2.9.1
, some_2.10
built.
change scalaversion
2.10.x works fine. have build root project 2.9.x. there way define scalaversion
depproject
cloned git?
you should fine scalaversion in [project-id] := "2.9.0"
project-id
project identifier depproject
or use depproject
in
. run projects
know names of available projects , pick proper 1 in
.
it appears similar setting javac options sbt dependencies.
Comments
Post a Comment