JsonToKotlinClass
JsonToKotlinClass copied to clipboard
JsonToKotlinClass maven/gradle plugin
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

@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
Wow.. cool. @wuseal I'd vote for this feature :+1:
I'd vote for this feature 👍
Would be a great addition! 👍
It would be a great addition!
@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
@eirnym That'd be cool. You can use our library. What do you think @wuseal ?
Cool, @theapache64 I'd create one, how you'd like to name it?
@wuseal makes the final call. let's wait for him. meantime, can you hop into our slack channel? Here's the invite link
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.
@kezhenxu94 I agree
I agree https://github.com/eirnym/js2p-gradle/issues/8#issuecomment-774426610
@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
Is there any update on this? sounds like exactly what I need, but I cannot find such a gradle plugin so far 🤔