Fork me on GitHub
#depstar
<
2021-08-06
>
lispyclouds09:08:48

Hello, im trying to buid a simple uberjar with the following deps.edn:

{:paths   ["src"]
 :deps    {java-http-clj/java-http-clj {:mvn/version "0.4.2"}}
 :aliases {:uberjar {:replace-deps {com.github.seancorfield/depstar {:mvn/version "2.1.278"}}
                     :exec-fn      hf.depstar/uberjar
                     :exec-args    {:aot        true
                                    :main-class bob.main}}}}
here is src/bob/main.clj:
(ns bob.main
  (:require [java-http-clj.core :as http])
  (:gen-class))

(defn -main
  [& _]
  (println (http/get "")))
when running clojure -X:uberjar i get:
Syntax error (ClassNotFoundException) compiling at (hf/depstar/uberjar.clj:3:1).
hf.depstar.uberjar
not sure whats wrong? i have used depstar before and now its erroring out 😞 Clojure CLI version 1.10.3.933 openjdk version "16.0.1" 2021-04-20 MacOS

lispyclouds12:08:02

nuking the whole ~/.m2/repository fixed it. not sure where the issue was. tried deleting just the depstar things from ~/.m2 but didt help

3