Shouldn't be necessary I think. Unless maybe you use automatic modules without automatic module name. But then it might be better to either upgrade or replace those modules or maybe to use
https://github.com/gradlex-org/extra-java-module-info to transform them into modules.