Class conflict: org.clojure / clojure version 1.7.0 is already loaded, not version 1.8.0 loading

When copying the build.boot file from the old project to the new one, I received the following error and found nothing on Google:

Class context: org.clojure / clojure version 1.7.0 is already loaded, not version 1.8.0 loading

+6
source share
2 answers

Ok, the answer is pretty simple. I was unable to load the boot.properties file in the root folder. Just create a file with the following contents:

#https://github.com/boot-clj/boot
#Sun Nov 01 16:34:27 CET 2015
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_VERSION=2.7.1
BOOT_CLOJURE_VERSION=1.8.0
+8
source

You should just enable [org.clojure/clojure "1.8.0"]with the same version as the boot environment variableBOOT_CLOJURE_VERSION=1.8.0

to the build.bootlist of dependencies.

- clojure .

boot show -d

,

Classpath conflict: org.clojure/clojure version 1.8.0 already loaded, NOT loading version 1.7.0
2018-01-16 15:05:21.023:INFO::main: Logging initialized @6899ms
[adzerk/boot-cljs "2.1.4" :scope "test"]
[adzerk/boot-reload "0.5.2" :scope "test"]
[hiccup "1.0.5"]
[org.clojure/clojurescript "1.9.946"]
β”œβ”€β”€ [com.google.javascript/closure-compiler-unshaded "v20170910"]
β”‚   β”œβ”€β”€ [args4j "2.33"]
β”‚   β”œβ”€β”€ [com.google.code.findbugs/jsr305 "3.0.1"]
β”‚   β”œβ”€β”€ [com.google.code.gson/gson "2.7"]
β”‚   β”œβ”€β”€ [com.google.errorprone/error_prone_annotations "2.0.18"]
β”‚   β”œβ”€β”€ [com.google.guava/guava "20.0"]
β”‚   β”œβ”€β”€ [com.google.javascript/closure-compiler-externs "v20170910"]
β”‚   β”œβ”€β”€ [com.google.jsinterop/jsinterop-annotations "1.0.0"]
β”‚   └── [com.google.protobuf/protobuf-java "3.0.2"]
β”œβ”€β”€ [org.clojure/google-closure-library "0.0-20170809-b9c14c6b"]
β”‚   └── [org.clojure/google-closure-library-third-party "0.0-20170809-b9c14c6b"]
β”œβ”€β”€ [org.clojure/tools.reader "1.1.0"]
└── [org.mozilla/rhino "1.7R5"]
[org.clojure/data.json "0.2.6"]
[pandeiro/boot-http "0.8.3"]
└── [org.clojure/clojure "1.7.0"]
[ring/ring-core "1.6.3" :exclusions [[org.clojure/clojure]]]
β”œβ”€β”€ [clj-time "0.11.0"]
β”‚   └── [joda-time "2.8.2"]
β”œβ”€β”€ [commons-fileupload "1.3.3"]
β”œβ”€β”€ [commons-io "2.5"]
β”œβ”€β”€ [crypto-equality "1.0.0"]
β”œβ”€β”€ [crypto-random "1.2.0"]
└── [ring/ring-codec "1.0.1"]
    └── [commons-codec "1.6"]
[ring/ring-jetty-adapter "1.6.3" :exclusions [[org.clojure/clojure]]]
β”œβ”€β”€ [org.eclipse.jetty/jetty-server "9.2.21.v20170120"]
β”‚   β”œβ”€β”€ [javax.servlet/javax.servlet-api "3.1.0"]
β”‚   β”œβ”€β”€ [org.eclipse.jetty/jetty-http "9.2.21.v20170120"]
β”‚   β”‚   └── [org.eclipse.jetty/jetty-util "9.2.21.v20170120"]
β”‚   └── [org.eclipse.jetty/jetty-io "9.2.21.v20170120"]
└── [ring/ring-servlet "1.6.3"]

:

[pandeiro/boot-http "0.8.3"]
└─[org.clojure/clojure "1.7.0"]

. , , , build.boot :

[pandeiro/boot-http "0.8.3" :exclusions [org.clojure/clojure]]

pandeiro/boot-http clojure, compain dissapeared.

+1

Source: https://habr.com/ru/post/1016036/


All Articles