What feature do you want to see added?
It would be nice if there was a possibility to configure Spring shading and relocation.
There's META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports which can currently be handled with ServiceFileTransformer, however, it would be nice if out-of-the-box SpringTransfomer would handle it as well.
There's META-INF/spring-configuration-metadata.json which contains helper information for IDE, and we can probably ignore it for now, however, transforming and merging that file would be a plus.
Spring has several files which should be modified for proper relocation:
"META-INF/spring-autoconfigure-metadata.properties",
"META-INF/spring.factories",
"META-INF/spring.handlers",
"META-INF/spring.schemas",
"META-INF/spring.tooling",
The files are in Properties format, however:
schemas and tooling have path for the values
- The rest have
class for the values
factories has class for the values
Sometimes, the values are comma-separated, so merging should use comma-separated value.
I've implemented SpringFileTransformer which works for me, however, it would be nice if there was out-of-the-box one.
Even though shading Spring is awkward, there are cases when it is needed. See also:
Are you interested in contributing this feature?
I might contribute, however, I am not comfortable with writing Groovy code.
What feature do you want to see added?
It would be nice if there was a possibility to configure Spring shading and relocation.
There's
META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.importswhich can currently be handled withServiceFileTransformer, however, it would be nice if out-of-the-box SpringTransfomer would handle it as well.There's
META-INF/spring-configuration-metadata.jsonwhich contains helper information for IDE, and we can probably ignore it for now, however, transforming and merging that file would be a plus.Spring has several files which should be modified for proper relocation:
The files are in
Propertiesformat, however:schemasandtoolinghavepathfor the valuesclassfor the valuesfactorieshasclassfor the valuesSometimes, the values are
comma-separated, so merging should use comma-separated value.I've implemented
SpringFileTransformerwhich works for me, however, it would be nice if there was out-of-the-box one.Even though shading Spring is awkward, there are cases when it is needed. See also:
Are you interested in contributing this feature?
I might contribute, however, I am not comfortable with writing Groovy code.