Giter Club home page Giter Club logo

Comments (10)

weavejester avatar weavejester commented on June 12, 2024 2

Ah, it might be a problem with leinjacker and your managed dependencies. My guess is that leinjacker doesn't support that, and as lein-ring relies on leinjacker to manage the dependencies, lein-ring doesn't support it either.

If you change the managed dependencies into normal dependencies, does lein-ring work?

from lein-ring.

ejschoen avatar ejschoen commented on June 12, 2024 1

It looks like leinjacker 0.4.3 works with managed dependencies, so it's possible to include leinjacker 0.4.3 before lein-ring in the plugin dependencies.

:plugins [[leinjacker "0.4.3"]
          [lein-ring "0.12.5" :exclusions [leinjacker]]
          [lein-parent "0.3.5"]]

from lein-ring.

antonmos avatar antonmos commented on June 12, 2024 1

updating leinjacker does work. I created a PR to make this permanent.

from lein-ring.

weavejester avatar weavejester commented on June 12, 2024

What do your dependencies look like?

from lein-ring.

t-matsudate avatar t-matsudate commented on June 12, 2024

Hi, James. Thank you for replying to me.

My project dependencies are just following:

:exclusions [org.clojure/clojure
             org.clojure/clojurescript
             ring/ring-core]
:managed-dependencies [[org.clojure/clojure "1.9.0"]
                       [org.clojure/clojurescript "1.10.439"]
                       [ring/ring-core "1.7.1"]]
:dependencies [[org.clojure/clojure]
               [org.clojure/clojurescript]
               [org.clojure/java.jdbc "0.7.8"]
               [ring/ring-core]
               [ring/ring-defaults "0.3.2" :exclusions [javax.servlet/javax.servlet-api]]
               [hiccup "1.0.5"]
               [bidi "2.1.5"]
               [sablono "0.8.5"]
               [clj-http "3.9.1"]]
:profiles {:dev {:exclusions [ring]
                 :managed-dependencies [[ring "1.7.1"]]
                 :dependencies [[ring/ring-mock "0.3.2"]
                                [com.bhauman/figwheel-main "0.2.0"]
                                [org.apache.derby/derby "10.14.2.0"]
                                [ring :exclusions [ring/ring-core]]]
                 :plugins [[lein-codox "0.10.5"]
                           [lein-ring "0.12.4"]
                           [lein-auto "0.1.3"]]}}

from lein-ring.

t-matsudate avatar t-matsudate commented on June 12, 2024

Yeah, lein ring server-headless just worked when managed-dependencies isn't written in project.clj.
Thank you for giving its idea to me!

from lein-ring.

t-matsudate avatar t-matsudate commented on June 12, 2024

@ejschoen Oh! Thank you for telling good thing to me!
lein ring server-headless ran with :managed-dependencies when I tried it which you told!

I had not noticed plugins can also exclude their dependencies. XD (Thank you telling it too!)

from lein-ring.

antonmos avatar antonmos commented on June 12, 2024

@weavejester could you please make a release with this fix? Thanks!

from lein-ring.

weavejester avatar weavejester commented on June 12, 2024

@weavejester could you please make a release with this fix? Thanks!

Released 0.12.6. Sorry about the delay.

from lein-ring.

antonmos avatar antonmos commented on June 12, 2024

No problem and thank you!

from lein-ring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.