ScaCap / spring-auto-restdocs

Spring Auto REST Docs is an extension to Spring REST Docs
https://scacap.github.io/spring-auto-restdocs/
Apache License 2.0
311 stars 86 forks source link

Please support jpms #471

Closed originalrusyn closed 10 months ago

originalrusyn commented 1 year ago

It looks impossible to use your lib in jpms (Java Platform Module System ) modular app because of next error:

error: module custom.module reads package capital.scalable.restdocs.jackson from both spring.auto.restdocs.core and spring.auto.restdocs.annotations

Could you please fix it?

fbenz commented 1 year ago

There are currently no plans to support JPMS as there are more important topics still in the pipeline and I'm the sole maintainer at the moment. However, an external contribution is welcome.

originalrusyn commented 1 year ago

@fbenz JPMS throws the error because the same java package capital.scalable.restdocs.jackson is used in different jars . So, it should be easily fixed by just to renaming the java package in one of jar or by merging all files of both jar into single jar.