This is due to a known issue with a library java.classpath on which tools.namespace depends, which has been fixed and released, but in a later version of java.classpath than the one that tools.namespace currently depends upon.
I can create an issue to fix that in tools.namespace, but without waiting for a fix, you can explicitly add a dependency upon the later version of the java.classpath library in your project, and likely things will work for you with JDK 11:
org.clojure/java.classpath {:mvn/version "0.3.0"}
It is likely that in the projects you have seen where things are working, some other dependency you have requires a later version of java.classpath.