That should be a question for me.
No it is not ok (even though the dependency is only on infinispan-commons). The only solution I can think of is to copy FileLookup to the jgroups subsystem.