I recommend making a custom lein task that calls uberjar rather than using hook. For example, if your project is called foo:
file: foo/tasks/leiningen/foobuild.clj
(ns leiningen.foobuild (:require leiningen.uberjar)) (defn foobuild [project] (download-maxmind-geoip-data) (leiningen.uberjar/uberjar project))
Then you can run this with:
lein foobuild
source share