Yu QIAN
Yu QIAN

Reputation: 177

'Not a valid key' error from sbt-release build command

I installed the sbt-release plugin in my scala sbt project.

But when I run sbt release cross build or sbt release skip-tests, I get this error:

Not a valid key: cross (similar: crossPaths, crossTarget, cross-paths)

Upvotes: 1

Views: 1942

Answers (2)

Dale Wijnand
Dale Wijnand

Reputation: 6102

If you want to run release cross with-defaults or release skip-tests from the command line you need to quote it:

$ sbt 'release cross with-defaults'

$ sbt 'release skip-tests'

Upvotes: 3

Kraylog
Kraylog

Reputation: 7563

For some reason the release plugin doesn't play nice when you run it this way. Try running sbt, then run release from within the console.

Upvotes: 0

Related Questions