I'm having some trouble with clj-native-image and slf4j, I can't figure out how to get the slf4j-nop
backend off the classpath
➜ clj -A:native-image
Compiling lambdaisland.funnel
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/arne/.m2/repository/org/slf4j/slf4j-nop/1.6.2/slf4j-nop-1.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/arne/.m2/repository/org/slf4j/slf4j-jdk14/1.7.30/slf4j-jdk14-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See <http://www.slf4j.org/codes.html#multiple_bindings> for an explanation.
SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory]
but when I do clj -C:native-image -Stree
it's not there
➜ clj -Stree -C:native-image
org.clojure/clojure 1.10.1
org.clojure/core.specs.alpha 0.2.44
org.clojure/spec.alpha 0.2.176
org.clojure/tools.cli 1.0.194
io.pedestal/pedestal.log 0.5.2
io.dropwizard.metrics/metrics-core 3.1.2
com.cognitect/transit-clj 1.0.324
com.cognitect/transit-java 1.0.343
commons-codec/commons-codec 1.10
com.fasterxml.jackson.core/jackson-core 2.8.7
org.msgpack/msgpack 0.6.12
com.googlecode.json-simple/json-simple 1.1.1
org.javassist/javassist 3.18.1-GA
javax.xml.bind/jaxb-api 2.3.0
org.java-websocket/Java-WebSocket 1.5.1
org.slf4j/slf4j-jdk14 1.7.30
org.slf4j/slf4j-api 1.7.30
for the rest have to say clj-native-image is really nice, was a breeze to get started. Had to look around a bit how to include resources but figured that out as well
lol ok an rm -rf /home/arne/.m2/repository/org/slf4j/slf4j-nop
fixed it 😄
@plexus also check out https://github.com/lread/clj-graal-docs
it's recommended to use 1.10.2-alpha1 for all graal projects going forward - it fixes the "famous" locking issue aka clj-1472