Skip to content

Commit

Permalink
Exclude JDK jars
Browse files Browse the repository at this point in the history
  • Loading branch information
ruped committed Sep 10, 2020
1 parent 94b7986 commit a03ad75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/com/skipgear/offload/jar.clj
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@

(defn make-uber-jar
[uber-jar-path]
(let [non-jdk-classpath (remove (comp #(s/includes? % "/openjdk") #(.getAbsolutePath %)) (cp/classpath))]
(let [non-jdk-classpath (remove (comp
#(or (clojure.string/includes? % "-openjdk-")
(clojure.string/includes? % "/openjdk"))
#(.getAbsolutePath %))
(cp/classpath))]
(if (and (empty? (cp/classpath-directories))
(= 1 (count non-jdk-classpath)))
(do
Expand Down

0 comments on commit a03ad75

Please sign in to comment.