Closed lbroudoux closed 11 months ago
Just for FYI - a .proto
file would never be in src/main/resources
. The grpc maven plugin looks in src/main/proto
for those files. Maybe that location should be added to the search path for .proto
files?
Similar with avro - those would be in src/main/avro
Thanks for your comment @edeandrea. Will take in account for a next enhancement 😉
Reason/Context
In the "Quarkus spirit" of Developer Joy, Convention over Configuration, and reducing plumbing & friction, it could be nice to implement auto-discovery of artifacts to import.
So instead of having to declare these specific properties in
application.properties
:we could rely on conventions so that artifacts located under
src/main/resources
andsrc/test/resources
may be automatically discovered and imported into the MicrocksContainer during DevService startup.Description
This auto-discovery mechanism will only be applied if no
quarkus.microcks.devservices.artifacts.*
is defined.We propose to rely on naming conventions:
*-openapi.yml
,*-openapi.yaml
,*-openapi.json
will be imported as primary artifacts,*-asyncapi.yml
,*-asyncapi.yaml
,*-asyncapi.json
will be imported as primary artifacts,*.proto
,*.graphql
,*-soapui-project.xml
will also be imported as primary artifacts,*postman-collection.json
,*postman_collection.json
will be imported as secondary artifacts*.har
will be imported as secondary artifacts,*-metadata.yml
,*-metadata.yaml
will also be imported as secondary artifacts,Implementation ideas
No response