Was able to hook this into the build system, but ran into multiple issues
1.
openapigenerate
task doesn’t get triggered by default. You need to explicitly set up the build dependency to it and I’m not sure how to do this 💯 in a multiplatform project - given that the compile task is different for different platforms you target. More about this in the thread
here
2. the current multiplatform template doesn’t seems to work with kotlinx-datetime formats. Raised this in a thread
here but that didn’t really go anywhere. There is also
this stackoverflow post about this i think
3. the current multiplatform template comes with a bunch of utility classes and authentication boilerplate that I don’t really need (my authentication feature is installed on the client in a different module elsewhere)
Due to these reasons, i decided not to automate
openapigenerate
tasks in to build - but if these gets addressed in the future, i might revisit this