Revert "artifacts named '*.jar' should not be treated as modules."

This reverts commit f8e3445482f759af6821e6b4350301003304856d.