   "Detect the classpath and sourcepath
   for a given file"
   [path]
-  (let [file (File. path)
-        unit (.getName file)
-        root (detect-project-root file)
+  (let [fpath (file path)
+        unit (.getName fpath)
+        root (detect-project-root fpath)
         srcs (detect-source-dirs root)]
-    [(concat (detect-java-core)) ; TODO add other jars
+    [(concat (detect-java-core) (detect-gradle-jars root)) ; TODO add other jars
      (map #(str % File/separator) srcs)
      (str/join (drop-last 5 unit))
      root]))

        [(.getAbsolutePath java-home-jar)]
      (.exists (File. osx-java-core))
        [osx-java-core])))

(defn detect-project-root
  "Detect project root given a File"

          (java.io File))
  (:require [clojure.string :as str]
            [clojure.java.io :refer [file]]
            [cljast.gradle :as gradle]))

(def type-method "m")
(def type-var "v")
