I apologize, I'm not certain of the right name for this.

I'm pulling in libgdx and its dependencies.  In Leiningen, my dependencies 
vector looks like this:

  :dependencies [[org.clojure/clojure "1.8.0"]
                 [com.badlogicgames.gdx/gdx "1.9.6"]
                 [com.badlogicgames.gdx/gdx-backend-lwjgl3 "1.9.6"]
                 [com.badlogicgames.gdx/gdx-platform "1.9.6" :classifier 
"natives-desktop"]]


Which expands out to this (in lein deps :tree, leaving out the Clojure core 
libs and nrepl and whatnot):

 [com.badlogicgames.gdx/gdx-backend-lwjgl3 "1.9.6"]
   [com.badlogicgames.jlayer/jlayer "1.0.1-gdx"]
   [org.jcraft/jorbis "0.0.17"]
   [org.lwjgl/lwjgl-glfw "3.1.0"]
   [org.lwjgl/lwjgl-glfw "3.1.0" :classifier "natives-linux"]
   [org.lwjgl/lwjgl-glfw "3.1.0" :classifier "natives-macos"]
   [org.lwjgl/lwjgl-glfw "3.1.0" :classifier "natives-windows"]
   [org.lwjgl/lwjgl-jemalloc "3.1.0"]
   [org.lwjgl/lwjgl-jemalloc "3.1.0" :classifier "natives-linux"]
   [org.lwjgl/lwjgl-jemalloc "3.1.0" :classifier "natives-macos"]
   [org.lwjgl/lwjgl-jemalloc "3.1.0" :classifier "natives-windows"]
   [org.lwjgl/lwjgl-openal "3.1.0"]
   [org.lwjgl/lwjgl-openal "3.1.0" :classifier "natives-linux"]
   [org.lwjgl/lwjgl-openal "3.1.0" :classifier "natives-macos"]
   [org.lwjgl/lwjgl-openal "3.1.0" :classifier "natives-windows"]
   [org.lwjgl/lwjgl-opengl "3.1.0"]
   [org.lwjgl/lwjgl "3.1.0"]
   [org.lwjgl/lwjgl "3.1.0" :classifier "natives-linux"]
   [org.lwjgl/lwjgl "3.1.0" :classifier "natives-macos"]
   [org.lwjgl/lwjgl "3.1.0" :classifier "natives-windows"]
 [com.badlogicgames.gdx/gdx-platform "1.9.6" :classifier "natives-desktop"]
 [com.badlogicgames.gdx/gdx "1.9.6"]


And the classpath ends up like this:

/Users/jfischer/Desktop/Clojure/gdx-skeleton/test:/Users/jfischer/Desktop/Clojure/gdx-skeleton/src:/Users/jfischer/Desktop/Clojure/gdx-skeleton/dev-resources:/Users/jfischer/Desktop/Clojure/gdx-skeleton/resources:/Users/jfischer/Desktop/Clojure/gdx-skeleton/target/default/classes:/Users/jfischer/.m2/repository/org/clojure/clojure/1.8.0/clojure-1.8.0.jar:/Users/jfischer/.m2/repository/com/badlogicgames/gdx/gdx-backend-lwjgl3/1.9.6/gdx-backend-lwjgl3-1.9.6.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-openal/3.1.0/lwjgl-openal-3.1.0.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-openal/3.1.0/lwjgl-openal-3.1.0-natives-windows.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl/3.1.0/lwjgl-3.1.0.jar:/Users/jfischer/.m2/repository/com/badlogicgames/gdx/gdx/1.9.6/gdx-1.9.6.jar:/Users/jfischer/.m2/repository/org/jcraft/jorbis/0.0.17/jorbis-0.0.17.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-openal/3.1.0/lwjgl-openal-3.1.0-natives-macos.jar:/Users/jfischer/.m2/repository/cider/cider-nrepl/0.15.0/cider-nrepl-0.15.0.jar:/Users/jfischer/.m2/repository/com/badlogicgames/gdx/gdx-platform/1.9.6/gdx-platform-1.9.6-natives-desktop.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-glfw/3.1.0/lwjgl-glfw-3.1.0.jar:/Users/jfischer/.m2/repository/clojure-complete/clojure-complete/0.2.4/clojure-complete-0.2.4.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-glfw/3.1.0/lwjgl-glfw-3.1.0-natives-macos.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-glfw/3.1.0/lwjgl-glfw-3.1.0-natives-windows.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-opengl/3.1.0/lwjgl-opengl-3.1.0.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl/3.1.0/lwjgl-3.1.0-natives-windows.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl/3.1.0/lwjgl-3.1.0-natives-linux.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-jemalloc/3.1.0/lwjgl-jemalloc-3.1.0.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-jemalloc/3.1.0/lwjgl-jemalloc-3.1.0-natives-windows.jar:/Users/jfischer/.m2/repository/com/badlogicgames/jlayer/jlayer/1.0.1-gdx/jlayer-1.0.1-gdx.jar:/Users/jfischer/.m2/repository/org/tcrawley/dynapath/0.2.5/dynapath-0.2.5.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-glfw/3.1.0/lwjgl-glfw-3.1.0-natives-linux.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl/3.1.0/lwjgl-3.1.0-natives-macos.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-jemalloc/3.1.0/lwjgl-jemalloc-3.1.0-natives-linux.jar:/Users/jfischer/.m2/repository/org/clojure/tools.nrepl/0.2.12/tools.nrepl-0.2.12.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-openal/3.1.0/lwjgl-openal-3.1.0-natives-linux.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-jemalloc/3.1.0/lwjgl-jemalloc-3.1.0-natives-macos.jar


Importantly, there's a jar there for each of those classifiers.

If I try and replicate the same thing using deps.edn:

{:deps
  {org.clojure/clojure {:mvn/version "1.8.0"}
   com.badlogicgames.gdx/gdx {:mvn/versin "1.9.6"}
   com.badlogicgames.gdx/gdx-backend-lwjgl3 {:mvn/version "1.9.6"}
   com.badlogicgames.gdx/gdx-platform {:mvn/version "1.9.6" :classifier 
"natives-desktop"}}}


I don't get all of the jars with different classifiers:

src:/Users/jfischer/.m2/repository/org/clojure/clojure/1.8.0/clojure-1.8.0.jar:/Users/jfischer/.m2/repository/org/jcraft/jorbis/0.0.17/jorbis-0.0.17.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-openal/3.1.0/lwjgl-openal-3.1.0.jar:/Users/jfischer/.m2/repository/com/badlogicgames/gdx/gdx/1.9.8/gdx-1.9.8.jar:/Users/jfischer/.m2/repository/com/badlogicgames/jlayer/jlayer/1.0.1-gdx/jlayer-1.0.1-gdx.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl/3.1.0/lwjgl-3.1.0-natives-windows.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-opengl/3.1.0/lwjgl-opengl-3.1.0.jar:/Users/jfischer/.m2/repository/com/badlogicgames/gdx/gdx-platform/1.9.6/gdx-platform-1.9.6-natives-desktop.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-jemalloc/3.1.0/lwjgl-jemalloc-3.1.0-natives-macos.jar:/Users/jfischer/.m2/repository/com/badlogicgames/gdx/gdx-backend-lwjgl3/1.9.6/gdx-backend-lwjgl3-1.9.6.jar:/Users/jfischer/.m2/repository/org/lwjgl/lwjgl-glfw/3.1.0/lwjgl-glfw-3.1.0-natives-linux.jar


I tried listing each of the classified jars that Leiningen is finding:

{:deps
  {org.clojure/clojure {:mvn/version "1.8.0"}

   org.lwjgl/lwjgl {:mvn/version "3.1.0"}
   org.lwjgl/lwjgl {:mvn/version "3.1.0" :classifier "natives-macos"}
   org.lwjgl/lwjgl-glfw {:mvn/version "3.1.0"}
   org.lwjgl/lwjgl-glfw {:mvn/version "3.1.0" :classifier "natives-macos"}
   org.lwjgl/lwjgl-jemalloc {:mvn/version "3.1.0"}
   org.lwjgl/lwjgl-jemalloc {:mvn/version "3.1.0" :classifier 
"natives-macos"}
   org.lwjgl/lwjgl-openal {:mvn/version "3.1.0"}
   org.lwjgl/lwjgl-openal {:mvn/version "3.1.0" :classifier "natives-macos"}
   
   com.badlogicgames.gdx/gdx {:mvn/versin "1.9.6"}
   com.badlogicgames.gdx/gdx-backend-lwjgl3 {:mvn/version "1.9.6"}
   com.badlogicgames.gdx/gdx-platform {:mvn/version "1.9.6" :classifier 
"natives-desktop"}}}


But that fails due to duplicate keys in the map, of course.

Is there another way I can use the CLI tool to build up this classpath?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to