Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

request for upgraded dependency com.google.inject/guice, conflicts with jclouds #67

Closed
trevor opened this issue Aug 2, 2013 · 3 comments
Milestone

Comments

@trevor
Copy link

trevor commented Aug 2, 2013

It appears the [com.google.inject/guice "2.0"] dependency takes precedency over "3.0" which jclouds is looking for. Would you be willing to release a version with updated dependencies?

;; project.clj

(defproject xyz "0.1.0-SNAPSHOT"
  :plugins [[lein-deps-tree "0.1.2"]]
  :dependencies [[org.clojure/clojure "1.5.1"]
                 [org.clojure/core.incubator "0.1.3"]
                 [org.jclouds/jclouds-allblobstore "1.6.0"]
                 ;[com.cemerick/friend "0.1.5"]
                 [org.clojure/tools.logging "0.2.6"]])


;; with [com.cemerick/friend "0.1.5"]

% lein deps-tree
[clojure-complete "0.2.3"]
[com.cemerick/friend "0.1.5"]
    [com.google.inject/guice "2.0"]
        [aopalliance "1.0"]
    [commons-codec "1.6"]
    [net.sourceforge.nekohtml/nekohtml "1.9.10"]
        [xerces/xercesImpl "2.8.1"]
            [xml-apis "1.3.03"]
    [org.apache.httpcomponents/httpclient "4.2.1"]
        [org.apache.httpcomponents/httpcore "4.2.1"]
    [org.clojure/core.cache "0.6.2"]
    [org.mindrot/jbcrypt "0.3m"]
    [org.openid4java/openid4java-nodeps "0.9.6" :exclusions [[com.google.code.guice/guice]]]
        [commons-logging "1.1.1"]
        [net.jcip/jcip-annotations "1.0"]
    [ring/ring-core "1.2.0-beta1"]
        [clj-time "0.4.4"]
            [joda-time "2.1"]
        [commons-fileupload "1.2.2"]
        [commons-io "2.4"]
        [javax.servlet/servlet-api "2.5"]
        [ring/ring-codec "1.0.0"]
    [robert/hooke "1.1.2"]
    [slingshot "0.10.2"]
[org.clojure/clojure "1.5.1"]
[org.clojure/core.incubator "0.1.3"]
[org.clojure/tools.logging "0.2.6"]
[org.clojure/tools.nrepl "0.2.3"]
[org.jclouds/jclouds-allblobstore "1.6.0"]
    [org.jclouds.api/atmos "1.6.0"]
    [org.jclouds.api/cloudfiles "1.6.0"]
    [org.jclouds.api/filesystem "1.6.0"]
    [org.jclouds.api/s3 "1.6.0"]
        [com.jamesmurty.utils/java-xmlbuilder "0.4"]
        [org.jclouds.api/sts "1.6.0"]
            [org.jclouds/jclouds-core "1.6.0"]
                [com.google.code.gson/gson "2.2.2"]
                [com.google.guava/guava "14.0.1"]
                [com.google.inject.extensions/guice-assistedinject "3.0"]
                [javax.annotation/jsr250-api "1.0"]
                [javax.inject "1"]
                [javax.ws.rs/jsr311-api "1.1.1"]
                [org.99soft.guice/rocoto "6.2"]
        [org.jclouds/jclouds-blobstore "1.6.0"]
    [org.jclouds.api/swift "1.6.0"]
        [org.jclouds.api/openstack-keystone "1.6.0"]
        [org.jclouds.common/openstack-common "1.6.0"]
    [org.jclouds.provider/aws-s3 "1.6.0"]
    [org.jclouds.provider/azureblob "1.6.0"]
        [org.jclouds.common/azure-common "1.6.0"]
    [org.jclouds.provider/cloudfiles-uk "1.6.0"]
    [org.jclouds.provider/cloudfiles-us "1.6.0"]
    [org.jclouds.provider/cloudonestorage "1.6.0"]
    [org.jclouds.provider/hpcloud-objectstorage "1.6.0"]
    [org.jclouds.provider/ninefold-storage "1.6.0"]

% lein repl
(use 'org.jclouds.blobstore2)
; nil
(System/setProperty "jclouds.filesystem.basedir" "/tmp/foo")
; nil
(def bs (blobstore "filesystem" "foo" "bar"))
; ClassNotFoundException com.google.inject.internal.util.$Preconditions  java.net.URLClassLoader$1.run (URLClassLoader.java:365)


;; without [com.cemerick/friend "0.1.5"]

% lein deps-tree
[clojure-complete "0.2.3"]
[org.clojure/clojure "1.5.1"]
[org.clojure/core.incubator "0.1.3"]
[org.clojure/tools.logging "0.2.6"]
[org.clojure/tools.nrepl "0.2.3"]
[org.jclouds/jclouds-allblobstore "1.6.0"]
    [org.jclouds.api/atmos "1.6.0"]
    [org.jclouds.api/cloudfiles "1.6.0"]
    [org.jclouds.api/filesystem "1.6.0"]
    [org.jclouds.api/s3 "1.6.0"]
        [com.jamesmurty.utils/java-xmlbuilder "0.4"]
        [org.jclouds.api/sts "1.6.0"]
            [org.jclouds/jclouds-core "1.6.0"]
                [com.google.code.gson/gson "2.2.2"]
                [com.google.guava/guava "14.0.1"]
                [com.google.inject.extensions/guice-assistedinject "3.0"]
                [com.google.inject/guice "3.0"]
                    [aopalliance "1.0"]
                [javax.annotation/jsr250-api "1.0"]
                [javax.inject "1"]
                [javax.ws.rs/jsr311-api "1.1.1"]
                [org.99soft.guice/rocoto "6.2"]
        [org.jclouds/jclouds-blobstore "1.6.0"]
    [org.jclouds.api/swift "1.6.0"]
        [org.jclouds.api/openstack-keystone "1.6.0"]
        [org.jclouds.common/openstack-common "1.6.0"]
    [org.jclouds.provider/aws-s3 "1.6.0"]
    [org.jclouds.provider/azureblob "1.6.0"]
        [org.jclouds.common/azure-common "1.6.0"]
    [org.jclouds.provider/cloudfiles-uk "1.6.0"]
    [org.jclouds.provider/cloudfiles-us "1.6.0"]
    [org.jclouds.provider/cloudonestorage "1.6.0"]
    [org.jclouds.provider/hpcloud-objectstorage "1.6.0"]
    [org.jclouds.provider/ninefold-storage "1.6.0"]

% lein repl
(use 'org.jclouds.blobstore2)
; nil
(System/setProperty "jclouds.filesystem.basedir" "/tmp/foo")
; nil
(def bs (blobstore "filesystem" "foo" "bar"))
; #'user/bs
@cemerick
Copy link
Owner

cemerick commented Aug 2, 2013

Sounds fine to me, presuming everything continues to work as expected. Note that guice is only needed for OpenID support, which is being moved out of friend proper real soon now (gh-45).

In any case, you can achieve the same effect by modifying your friend dependency to [com.cemerick/friend "0.1.5" :exclusions [com.google.inject/guice]].

@cemerick
Copy link
Owner

cemerick commented Oct 1, 2013

Last call on proposed changes related to this. If the :exclusions approach/workaround works, please say so. :-)

@cemerick
Copy link
Owner

cemerick commented Jan 5, 2017

"Classic" OpenId support is being nuked from orbit, which will fix this as a side effect. viz. #45

@cemerick cemerick closed this as completed Jan 5, 2017
@cemerick cemerick added this to the 0.3.0 milestone Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants