   (or (empty? @artifacts)
       (neg? (- millis-per-day
                (- (-> artifacts meta :last-modified .getTime)
-                  (-> (java.util.Date.) .getTime))))))
+                  (.getTime (java.util.Date.)))))))
 
 (defn- get-all-clj-artifacts!
   "All the artifacts under org.clojure in mvn central"

                          dorun)))))

(defn- get-artifacts-from-mvn-central! []
  (-> (get-all-clj-artifacts!)
      (add-artifacts)))

(defn- update-artifact-cache! []
  (let [mvn-central-futures (get-artifacts-from-mvn-central!)
        clojars-future (future (add-artifacts-from-clojars!))]
    (-> (map deref mvn-central-futures) dorun)
    @clojars-future)
  (alter-meta! artifacts update-in [:last-modified]
               (constantly (java.util.Date.))))

      (add-dependencies :coordinates coords :repositories repos)
      (transport/send transport
                      (response-for msg :status :done
                                    :dependency (str/join " " dependency-vector))))
    (catch Exception e
      (transport/send transport (response-for msg :error (.getMessage e)
                                              :status :done)))))
