9999 is fine. nrepl doesn't have a default port as far as I know.  As far as getting Eclipse to be happy, no idea. Presumably in groovy/gradle there's a way to use the project property if it's there and fallback to a default if it's not.