The file should be in your classpath, which you can show with
lein classpath
Look at the first few entries, they will look something like this:
/git/project/test:/git/project/src:/git/project/dev-resources:/git/project/resources:...
Since you already put it in resources , you are configured. The important thing, however, is that the path you go to defqueries should be relative to your classpath, so in your case, relative to resources :
(defqueries "queries.sql")
slurp works because it works directly on your file system, not just the classpath. Since you started your REPL at the root of the project, resources/queries.sql is a perfectly valid path.
source share