Discuss GraalVM related topics. Use clojure 1.10.2 or newer for all new projects. Contribute to and GraalVM slack:
plexus 2020-05-15T16:08:15.257800Z

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

plexus 2020-05-15T16:08:21.258Z

➜ 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 <> for an explanation.
SLF4J: Actual binding is of type [org.slf4j.helpers.NOPLoggerFactory]

plexus 2020-05-15T16:08:39.258400Z

but when I do clj -C:native-image -Stree it's not there

plexus 2020-05-15T16:08:50.258600Z

➜ 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 1.5.1
org.slf4j/slf4j-jdk14 1.7.30
  org.slf4j/slf4j-api 1.7.30

plexus 2020-05-15T16:10:32.259400Z

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

plexus 2020-05-15T16:11:34.259700Z

lol ok an rm -rf /home/arne/.m2/repository/org/slf4j/slf4j-nop fixed it 😄

borkdude 2020-05-15T16:26:50.259900Z

@plexus also check out

borkdude 2020-05-15T16:27:28.260500Z

it's recommended to use 1.10.2-alpha1 for all graal projects going forward - it fixes the "famous" locking issue aka clj-1472