Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will not launch outside of project directory (no sbt.version) #151

Open
sloshy opened this issue Mar 10, 2020 · 1 comment
Open

Will not launch outside of project directory (no sbt.version) #151

sloshy opened this issue Mar 10, 2020 · 1 comment

Comments

@sloshy
Copy link

sloshy commented Mar 10, 2020

I have a giter8 template that I want to use with sbt new. To do so, I invoke the command in my base project directory which does not have a build.properties file, and there is no inferred sbt version. For example, this will fail in my projects directory:

rpeters$ sbt --version
Exception in thread "main" java.lang.Exception: Don't know what Scala version should be used for sbt version ''

A workaround is to manually specify the version like so: sbt -Dsbt.version=1.3.8 '<command>'

@dwijnand
Copy link

Fails fast and explicitly when using coursier/sbt-extras because that looks, checks and uses the sbt.version in project/build.properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants