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

SBT Task Keys have spaces in them #3

Open
tschuchortdev opened this issue Jan 2, 2025 · 0 comments
Open

SBT Task Keys have spaces in them #3

tschuchortdev opened this issue Jan 2, 2025 · 0 comments

Comments

@tschuchortdev
Copy link

I'm having trouble executing the sbt tasks from the sbt console because the key of the cxfGenerate task is actually "run wsdl2java" (with spaces) and because of those spaces the sbt console thinks it is two seperate tasks.

See:

lazy val cxfGenerate = TaskKey[Seq[File]]("run wsdl2java")

What you meant to write was probably:

lazy val cxfGenerate = taskKey[Seq[File]]("run wsdl2java")

Note the lowercase t! taskKey is a macro which will create a task with key cxfGenerate and description run wsdl2java. TaskKey.apply on the other hand will create a task with key "run wsdl2java" and no descrpition.

Solution is to change all occurances of TaskKey and SettingsKey to taskKey and settingsKey respectively.

For reference: https://stackoverflow.com/a/51804234

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

1 participant