-
Notifications
You must be signed in to change notification settings - Fork 28
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
Build tool's plugin options #120
Comments
Hi @andreaTP
A maven/gradle integration sounds like a great idea! As per hosting and publishing it from here, let me share that with my PM and architect and get back to you. |
An example project is in the integration test: https://github.com/andreaTP/kiota-utils/tree/main/plugin-it/src/it/basic-codegen-test The target API is only one at the moment but is trivial to change it to be an Array.
Thanks a ton! But, please, consider that depending on the result of #121 it might become more appealing to me to keep more control over the build tool extension. |
Noted. As per the configuration, yes I think we should design it in such a way that it supports multiple APIs. Or even multiple times the same API but with different filters. That's how we demo kiota and we believe it could change the API consumption paradigm. |
Could it make sense to add support for kiota-java to https://github.com/OpenAPITools/openapi-generator to, considering it already has maven/gradle plugins available? |
There is no possible reuse across the two projects as the technological stack and the integration with Java projects are extremely different. Though there is Ia Maven plugin and a Quarkus extension. |
There are several reasoning to be done around "how we expect" users to use Kiota in their projects, among others:
Personally, I do like the approach that considers a codegen tool 100% idempotent and the generated code should be reproducible and not committed in the versioning system (i.e. regenerated all the time, build tools are good at caching the results on dev machines).
Following this(opinionated) philosophy I started automating the code generation wrapping the
kiota
CLI in a Maven plugin:https://github.com/andreaTP/kiota-utils/blob/main/plugin/src/main/java/io/apicurio/kiota/KiotaMojo.java
Here I'm asking if you have already considered this aspect and what your take on the subject is.
More specifically, would you accept Maven/Gradle plugins in this repo or you prefer them to be third-party?
The text was updated successfully, but these errors were encountered: