file(apiTarget) / "java" 

... is also possible here I think