I use the Quarkus SmallRye GraphQL extension and I’d like to override a couple of lines in the render.js
file.
I created a Quarkus extension in which, similarly as in SmallRyeGraphQLProcessor, I added a build step that produced a WebJarBuildItem
with an appropriate WebJarResourcesFilter
.
During the build of an application, a Quarkus WebJarProcessor
produces a map of jar overrides.
Map<GACT, WebJarResultsBuildItem.WebJarResult> results = new HashMap();
As I had two WebJarBuildItem
s for one artifact, one of the items overwrote the second one (in no particular order). As a result, only one from the jar overrides was applied.
I achieved the goal by keeping the overwritten render.js
file in memory and responding with a desired content using a request filter. But I’m looking for a better solution.
Patrycja Rewerska is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.