How do I evaluate an sbt SettingsKey -
i want combine sbt-release plugin play framework.
the plugins reads current version number file version.sbt
. content is
version in thisbuild := "0.41.0-snapshot"
i use setting in main build file variable version
of type sbt.settingkey
.
there evaluate
method life of me can't figure out pass in string defined in version.sbt
.
this little shortcoming play.project
constructor, excepts static version number, not 1 setting key.
however, required parameter application name, can switch like:
val main = play.project(appname, appversion, appdependencies, settings = defaults.defaultsettings ++ releasesettings ).settings(...)
to
val main = play.project(appname).settings(appdependencies). settings(releasesettings).settings(...)
normally, version defined in version.sbt
should picked here automagically. if isn't, can add above:
.settings(applicationversion <<= version in thisbuild)
Comments
Post a Comment