Pedestal dependency causes cljdoc build to fail

28 views
Skip to first unread message

Alan Thompson

unread,
May 29, 2019, 10:24:34 AM5/29/19
to pedestal-users
Hi - I'm not sure how to approach this problem.  It seems that my dependency on Pedestal has caused a build failure at cljdoc.org

Execution error (IllegalArgumentException) at tupelo.pedestal/eval25355$loading (pedestal.clj:7).
Can't define method not in interfaces: isAsyncSupported
Full report at: /tmp/clojure-3318143415647882648.edn


However, previous builds have succeeded:  https://cljdoc.org/d/tupelo/tupelo/0.9.138/doc/readme

Pedestal is composed of lein subprojects, and the `service` subproject has `javax.servlet` as a `:dev` dependency (not a normal dep).  I am guessing this is the cause of the build failure, but I'm not sure of the exact cause or cure.

Any suggestions?

Thanks,
Alan

Paul deGrandis

unread,
May 30, 2019, 7:37:25 AM5/30/19
to pedestal-users
Hi Alan,

Sorry you got snagged by this!  The servlet dependency is a provided dependency, so it's expected that projects using `pedestal.service` also set the servlet dependency in their classpath (eg: with their deps/build tool).  It could be that you already have a servlet dependency in your classpath, but an older, previous version before `isAsyncSupported` was added.  Pedestal requires Java 1.8+ and Servlet 3.1+.

In a future version of Pedestal, the servlet specific pieces will be a bit more isolated (and will no longer be a required/provided dep).

Hope this helps!
Regards
Reply all
Reply to author
Forward
0 new messages