From e931a6996335ed479f26acc33c7a531ca27e86e2 Mon Sep 17 00:00:00 2001 From: Aleksey Kvak Date: Tue, 2 Mar 2021 14:08:27 +0300 Subject: [PATCH] fix: LoggerFactory has different implementation in runtime. Complete Error: java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of jetbrains/buildServer/plugins/classLoaders/PluginStandaloneClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/apache/catalina/loader/ParallelWebappClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature See #230 and #274 --- sources/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/build.gradle b/sources/build.gradle index e0296465..c77bdc60 100644 --- a/sources/build.gradle +++ b/sources/build.gradle @@ -161,6 +161,7 @@ test { } dependencies { + compile 'ch.qos.logback:logback-classic:1.2.3' compile 'com.google.code.gson:gson:2.8.0' compile 'org.slf4j:slf4j-api:1.7.7' compile 'org.apache.httpcomponents:httpclient:4.5.3'