You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WireMock depends on slf4j-api:1.7.36 and WireMock standalone depends on slf4j-noop:1.7.36
As WireMock dependencies use other versions ofslf4j-api, Gradle resolves the versions to the latest:
Partial output of gradlew dependencies
It does not change the version of slf4j-noop, resulting in a mismatch and a warning that there are no providers since SLF4J 2+ expects providers to be loaded via SPI.
The warning can be resolved specifying the provider wiremock.org.slf4j.helpers.NOP_FallbackServiceProvider in META-INF/services/wiremock.org.slf4j.spi.SLF4JServiceProvider.
Reproduction steps
Create a project with wiremock-standalone as a test dependency
Proposal
WireMock depends on
slf4j-api:1.7.36
and WireMock standalone depends onslf4j-noop:1.7.36
As WireMock dependencies use other versions of
slf4j-api
, Gradle resolves the versions to the latest:Partial output of
gradlew dependencies
It does not change the version of
slf4j-noop
, resulting in a mismatch and a warning that there are no providers since SLF4J 2+ expects providers to be loaded via SPI.The warning can be resolved specifying the provider
wiremock.org.slf4j.helpers.NOP_FallbackServiceProvider
inMETA-INF/services/wiremock.org.slf4j.spi.SLF4JServiceProvider
.Reproduction steps
wiremock-standalone
as a test dependencyReferences
#1964
A portion of
wiremock.org.slf4j.LoggerFactory
inwiremock-standalone
3.2.0 showing the URL constant for the ignoredBindings warning:The text was updated successfully, but these errors were encountered: