-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
sbt plugin for OpenAPI Generator #5406
sbt plugin for OpenAPI Generator #5406
Conversation
@chameleon82 I think this looks great. I wonder if it would be better to include this as a separate repository under OpenAPI Tools? I think that would address some concerns that might arise from adding another plugin here:
I think the separate repo would be good as well because it would allow us to setup GitHub Workflows for build/release. We could also create a cron workflow which checks OpenAPITools/openapi-generator daily for new releases and automatically prepare a new release Pull Request of the SBT Plugin. I'm planning to do something similar for my IntelliJ Plugin as well. As far as your other questions, I think an I have a few questions/comments about the implementation. Please forgive me, because it's been about 2.5 years since I last write an SBT plugin.
|
@jimschubert i've implemented new config as sbt doesn't have default
|
@jimschubert revised the code, seems
and
But as main purpose of plugin is to generate whole project it unclear for me how to
|
@chameleon82 I've setup https://github.com/OpenAPITools/sbt-openapi-generator Should we move your work there? |
Closing this as we created https://github.com/openapitools/sbt-openapi-generator I'll leave #3650 to address documenting the new plugin |
Regarding to #3650 sbt plugin for OpenAPI Generator added
Few concerns about this PR:
https://bintray.com/sbt/sbt-plugin-releases
, I believe @eed3si9n can help us on it. (continued here Set up repositories for publishing releases and snapshots sbt-openapi-generator#5)openapi-generator-sbt-plugin
, but sbt plugin best practices recommends to name it assbt-openapi-generator
.Resolution:
sbt-openapi-generator
as separate projectopenapiSettings
case class, but in this casesbt
will loose description of each setting (which probably ok)Resolution:
openApi
prefixsbt
integration tests still require sbt anyway) and integrate this module as part of project, but have no experience on it.Resolution: don't needed as moved to separate project
src_managed
directory for generated files?Resolution: up to user. will be better described in README
PR checklist
./bin/
(or Windows batch scripts under.\bin\windows
) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh
,./bin/openapi3/{LANG}-petstore.sh
if updating the code or mustache templates for a language ({LANG}
) (e.g. php, ruby, python, etc).master
,4.3.x
,5.0.x
. Default:master
.@jimschubert @wing328 @YanDoroshenko