eventuate-tram / eventuate-tram-sagas-examples-customers-and-orders

Spring Boot/JPA microservices that use an orchestration-based saga to maintain data consistency
Other
520 stars 236 forks source link

swagger ui is not available for api-gateway #54

Open dartartem opened 3 years ago

dartartem commented 3 years ago

api-gateway has controller that server index.html of swagger-ui:

https://github.com/eventuate-tram/eventuate-tram-sagas-examples-customers-and-orders/blob/afe7b6a0f6de71906c88500f05f67547fd6242ee/api-gateway-service/src/main/java/io/eventuate/examples/tram/sagas/ordersandcustomers/apigateway/common/SwaggerController.java#L8-L14

But there is no such file "META-INF/swagger-ui/index.html"

Problem is that META-INF of eventuate-util-swagger-ui is not unpacked in api-gateway jar

Solution is define task to unpack:

bootJar {
    requiresUnpack '**/eventuate-util-swagger-ui-*.jar'
}