#3559·wiremock

commons-fileupload breaks modulepath

Author: raphwCreated Aug 18, 2026Updated Aug 18, 2026
Labelsbug

Proposal

commons-fileupload 1.6 adds a module-info class file which references retired module names such as the previous java.servlet API. That makes it impossible to use it as a module and one needs to downgrade to 1.5.

There is commons-fileupload2 which resolves this issue, but it creates a new namespace and needs updating.

The dependency is declared here:

https://github.com/wiremock/wiremock/blob/3e038e279db59aab5be289ac4573c2d9faaa56bb/gradle/libs.versions.toml#L103

Please consider updating to version 2 of the library.

Reproduction steps

Load WireMock on the Module Path with all dependencies.

References

No response