Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using leiningen #170

Open
lucasemmoreira opened this issue May 8, 2023 · 2 comments
Open

Problem using leiningen #170

lucasemmoreira opened this issue May 8, 2023 · 2 comments

Comments

@lucasemmoreira
Copy link

hey there!

I am trying to use your package but I am having some issues. I created a very simple project with

lein new app ui

and added the package to the dependency as such

(defproject ui "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
            :url "https://www.eclipse.org/legal/epl-2.0/"}
  :dependencies [[org.clojure/clojure "1.11.1"]
                 [cljfx "1.7.22"]]
  :main ^:skip-aot ui.core
  :target-path "target/%s"
  :profiles {:uberjar {:aot :all
                       :jvm-opts ["-Dclojure.compiler.direct-linking=true"]}})

however, when I try to get the dependencies with lein deps, it pulls a bunch of stuff, but then I get this:

Could not find artifact org.openjfx:javafx-controls:jar:${javafx.platform}:17.0.2 in central (https://repo1.maven.org/maven2/)
Could not find artifact org.openjfx:javafx-controls:jar:${javafx.platform}:17.0.2 in clojars (https://repo.clojars.org/)
Could not find artifact org.openjfx:javafx-base:jar:${javafx.platform}:17.0.2 in central (https://repo1.maven.org/maven2/)
Could not find artifact org.openjfx:javafx-base:jar:${javafx.platform}:17.0.2 in clojars (https://repo.clojars.org/)
Could not find artifact org.openjfx:javafx-graphics:jar:${javafx.platform}:17.0.2 in central (https://repo1.maven.org/maven2/)
Could not find artifact org.openjfx:javafx-graphics:jar:${javafx.platform}:17.0.2 in clojars (https://repo.clojars.org/)
Could not find artifact org.openjfx:javafx-media:jar:${javafx.platform}:17.0.2 in central (https://repo1.maven.org/maven2/)
Could not find artifact org.openjfx:javafx-media:jar:${javafx.platform}:17.0.2 in clojars (https://repo.clojars.org/)
Could not find artifact org.openjfx:javafx-web:jar:${javafx.platform}:17.0.2 in central (https://repo1.maven.org/maven2/)
Could not find artifact org.openjfx:javafx-web:jar:${javafx.platform}:17.0.2 in clojars (https://repo.clojars.org/)

I tried changed to the 1.21, but with no luck...

Can anyone give me a hand?

Thx!

@vlaaad
Copy link
Contributor

vlaaad commented May 9, 2023

I tried this project.clj file and it worked. What leiningen version are you using?

~/Projects/lein-repro> cat project.clj 
(defproject ui "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
            :url "https://www.eclipse.org/legal/epl-2.0/"}
  :dependencies [[org.clojure/clojure "1.11.1"]
                 [cljfx "1.7.22"]]
  :main ^:skip-aot ui.core
  :target-path "target/%s"
  :profiles {:uberjar {:aot :all
                       :jvm-opts ["-Dclojure.compiler.direct-linking=true"]}})

~/Projects/lein-repro> lein --version
Leiningen 2.9.8 on Java 18.0.1.1 OpenJDK 64-Bit Server VM

~/Projects/lein-repro> lein deps :tree
 [cljfx "1.7.22"]
   [cljfx "1.7.22" :classifier "jdk11"]
   [org.openjfx/javafx-base "17.0.2"]
     [org.openjfx/javafx-base "17.0.2" :classifier "mac-aarch64"]
   [org.openjfx/javafx-controls "17.0.2"]
     [org.openjfx/javafx-controls "17.0.2" :classifier "mac-aarch64"]
   [org.openjfx/javafx-graphics "17.0.2"]
     [org.openjfx/javafx-graphics "17.0.2" :classifier "mac-aarch64"]
   [org.openjfx/javafx-media "17.0.2"]
     [org.openjfx/javafx-media "17.0.2" :classifier "mac-aarch64"]
   [org.openjfx/javafx-web "17.0.2"]
     [org.openjfx/javafx-web "17.0.2" :classifier "mac-aarch64"]
 [nrepl "0.8.3" :exclusions [[org.clojure/clojure]]]
 [org.clojure/clojure "1.11.1"]
   [org.clojure/core.specs.alpha "0.2.62"]
   [org.clojure/spec.alpha "0.3.218"]
 [org.nrepl/incomplete "0.1.0" :exclusions [[org.clojure/clojure]]]

@lucasemmoreira
Copy link
Author

Thank you for the fast response!

~> lein --version
Leiningen 2.10.0 on Java 11.0.16 OpenJDK 64-Bit Server VM

seems ok to me.

Hmm, could it be my OS? I am currently working on OpenBSD 7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants