Sunday, 15 January 2012

"release" command from sbt-release plugin is not recognized -



"release" command from sbt-release plugin is not recognized -

i can't sbt-release plugin work @ all. "sbt release" command not recognized.

as per plugin's documentation, have entry added ./project/plugins.sbt file in play application:

addsbtplugin("com.github.gseitz" % "sbt-release" % "0.8.5")

and i'm running latest to-date 0.13.6 version of sbt launcher. here's error when execute "sbt release" project directory:

[info] loading project definition /users/projects/project [info] loading [pom.xml] [info] utilize auto-generated build object [success] pom definition loaded [info] set current project integration (in build file:/users/projects/project/) [error] not valid command: release (similar: reload, eclipse, last) [error] not valid project id: release [error] expected ':' (if selecting configuration) [error] not valid key: release (similar: rpmrelease, rpm-release, resolvers) [error] release [error] ^

and create sure, sbt-release plugin loaded project, execute "sbt about", , show sbt-release in list of available plugins. again, reason, "sbt release" command not recognized.

> sbt ... [info] available plugins: ... sbtrelease.releaseplugin, ...

as per sbt-release plugin documentation, added line build.sbt file, , did it! "sbt release" command beingness recognized.

releasesettings

for reason, did not work me first time tried earlier. must have been going on in environment or before version of build.sbt file.

sbt

No comments:

Post a Comment