-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add option for Scala case class, and easy configuration of other renderers. #98
Conversation
0f74e82
to
f91ec29
Compare
Might be related: #95 |
Also: #47 |
Hi, is there any reason to not merge this PR? It will be pretty useful since the #95 issue it's fixed too |
The change looks nice. Sorry about the late response. |
thx |
👍 I was justing thinking the same when I saw this! thanks 😄 |
I've added the below line in
and get the following compile error:
|
@marko-asplund here https://github.com/sbt/sbt-buildinfo/blob/master/src/sbt-test/sbt-buildinfo/caseclassrenderer/build.sbt#L25 you have a example build with the ScalaCaseObjectRenderer configured. I think you are using the wrong setting key. |
One can now use
To switch to another Renderer. Also added a Case Class renderer, which will create a case class AND an object that inherits the class. This makes it easy to use a jsonFormatter with the output.