Replies: 1 comment 3 replies
-
Hi Zoran, The underlying reasoning to have separate class loaders is layed out here: sormuras/junit-platform-isolator#1 As I didn't touch boths projects (isolator and this plugin) for months, I'm not sure this behaviour is a bug or a feature. Will try to examine your example later ... have you tried running with the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Seems like dependencies scoped as
runtime
are not included in the main classloader. For example if I addch.qos.logback:logback-classic
dependency inruntime
scope,org.slf4j:slf4j-api
incompile
scope will not detect it and will issue a warning about missingorg.slf4j.impl.StaticLoggerBinder
class.The only workaround I've found is to run in isolation of
MERGED
orNONE
. I've created an example to help illustrate this. When running with 1.1.2 I get:And if I change the isolation to
MERGED
orNONE
I get:The real issue I'm having with this is that I would like to declare some dependencies in
runtime
scope so the main code doesn't depend on them at compile time, and have the implementation discovered via service loader mechanism at runtime.This might be a conscious decision and I'm wondering about the reason behind this?
Beta Was this translation helpful? Give feedback.
All reactions