Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Parameterize output package name #24

Open
ignasi35 opened this issue May 12, 2017 · 2 comments
Open

Parameterize output package name #24

ignasi35 opened this issue May 12, 2017 · 2 comments

Comments

@ignasi35
Copy link
Contributor

Current sbt plugin will output code into a package equal to the organization name of the sbt project. This value should be overridable by the end user.

See

@ignasi35
Copy link
Contributor Author

This is closely related to #25 since a user consuming several service may want to create their APIs in separate packages. Imagine an app consuming twitter, slack and G+ APIs and all three have an Error type in their definitions, without a package-per-service there would be a collision and client code would be confusing.

@ignasi35
Copy link
Contributor Author

This could be achieved by either including a lagomGeneratorPackageName parameter in the sbt plugin or via allowing users to implement a Service => Service function in their sbt settings and have that injected in the provided generators.

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

No branches or pull requests

1 participant