sormuras / junit-platform-maven-plugin

Maven Plugin launching the JUnit Platform
Apache License 2.0
61 stars 15 forks source link

Upgrading slf4j dependency breaks junit-platform-console on hamcrest dependency #67

Closed dbwiddis closed 2 years ago

dbwiddis commented 3 years ago

If the subject line sounds confusing, it is to me too. I'm not even sure this is the right project to which to submit this issue, but since the error is occurring during execution of this plugin, it's at least a cry for help from someone who might have an inkling where else I can look!

Background:

The change causing problems:

The symptoms:

Things I've tried with no success:

I don't know if this is a bug or user (me) error or just a need for a configuration setting in maven.

Happy to try any other suggestions and provide any other output needed. Or you can try playing with it yourself on the java11 branch here: https://github.com/oshi/oshi/tree/java11

sormuras commented 3 years ago

Hi Daniel, I'll try to take a look later this week. I skimmed the configuration and it looks good to me:

https://github.com/oshi/oshi/blob/9fbccfb3a4c71fb714e012f3d8fc33f03eaa1075/pom.xml#L261-L280

sormuras commented 3 years ago

3 weeks ... and still got not time. Soon™️...

dbwiddis commented 2 years ago

Your definition of "Soon™️" may need recalibrating. 😁

I was bored enough today to try to debug this myself, and after a few hours of trial and error and stack trace digesting, I managed to get it working by adding the following lines to module-info.test:

--add-modules 
  org.hamcrest
--add-reads
  com.github.oshi=org.hamcrest

So I think this was just a configuration thing on my end that I needed to fix.