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

JsonToKotlinClass maven/gradle plugin #147

Open
kezhenxu94 opened this issue Apr 17, 2019 · 14 comments
Open

JsonToKotlinClass maven/gradle plugin #147

kezhenxu94 opened this issue Apr 17, 2019 · 14 comments
Labels
feature request help wanted L9 Difficulty level 9 (Maximum is 9)
Milestone

Comments

@kezhenxu94
Copy link
Collaborator

Now we generate the Kotlin data class and put it into the codebase, other code generator (like Protobuf and greendao) usually generate the code into a seperated folder (target/generated-sources) automatically, this would be really helpful when the JSON structure changes frequently, it won't pollute the commits history

image

@kezhenxu94 kezhenxu94 added this to the someday milestone Apr 17, 2019
@kezhenxu94 kezhenxu94 pinned this issue Apr 17, 2019
@kezhenxu94 kezhenxu94 changed the title JsonToKotlinClass maven plugin JsonToKotlinClass maven/gradle plugin Apr 17, 2019
@xurui1995 xurui1995 unpinned this issue May 13, 2019
@wuseal wuseal pinned this issue Jun 25, 2019
@wuseal wuseal added the L9 Difficulty level 9 (Maximum is 9) label Jun 26, 2019
@AlexTrotsenko
Copy link

@wuseal any updates ? This would be lovely to see such kotlin plugin.
Check java plugin for example: https://github.com/joelittlejohn/jsonschema2pojo/tree/master/jsonschema2pojo-gradle-plugin

@theapache64
Copy link
Collaborator

Wow.. cool. @wuseal I'd vote for this feature 👍

@hannesa2
Copy link

I'd vote for this feature 👍

@kassim
Copy link

kassim commented Jan 25, 2021

Would be a great addition! 👍

@eirnym
Copy link

eirnym commented Feb 6, 2021

It would be a great addition!

@eirnym
Copy link

eirnym commented Feb 6, 2021

@wuseal I can write a plugin for you if you need it, it'd be a simple one :)

Here you can see mine for jsonschema2pojo https://github.com/eirnym/js2p-gradle

@theapache64
Copy link
Collaborator

@eirnym That'd be cool. You can use our library.
What do you think @wuseal ?

@eirnym
Copy link

eirnym commented Feb 6, 2021

Cool, @theapache64 I'd create one, how you'd like to name it?

@theapache64
Copy link
Collaborator

theapache64 commented Feb 6, 2021

@wuseal makes the final call. let's wait for him. meantime, can you hop into our slack channel? Here's the invite link

@kezhenxu94
Copy link
Collaborator Author

As a plugin, I think we should create another repo to host it. Also, I recommend to create an organization and host these repos there for better collaboration and user recognition.

@theapache64
Copy link
Collaborator

@kezhenxu94 I agree

@hannesa2
Copy link

hannesa2 commented Feb 7, 2021

@wuseal
Copy link
Owner

wuseal commented Feb 10, 2021

@eirnym Of course, That's awesome, then name can be jsontokotlinclass and id could be wu.seal.jsontokotlin or jsontokotlinclass(if no other taken up it). You could create a dir named plugin in the root repo.
Welcome to open a PR here, and I and @kezhenxu94 will review it

@huehnerlady
Copy link

huehnerlady commented May 14, 2021

Is there any update on this? sounds like exactly what I need, but I cannot find such a gradle plugin so far 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request help wanted L9 Difficulty level 9 (Maximum is 9)
Projects
None yet
Development

No branches or pull requests

8 participants