Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1191

Fatjar : dependency using logback ( conflicting logback versions )

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.1.7
    • logback-core

    Description

      I'm trying to generate a fat-jar. My project uses on logback v 1.1.7 nonetheless one of my dependencies (storm) uses logback but an older version (1.0.6)

      I tried shading logback in my project (using sbt shading plugin). Nonetheless it seems that logback tries to load classes dynamically and Im getting the following error from my shaded logback(specifically my shaded logback is trying to create a class using the non-shaded logback):

      17:50:43,164 |-ERROR in shadelb.core.joran.spi.Interpreter@29:84 - ActionException in Action for tag [appender] shadelb.core.joran.spi.ActionException: shadelb.core.util.IncompatibleClassException
      at shadelb.core.joran.spi.ActionException: shadelb.core.util.IncompatibleClassException

      Question are:

      Is there a way to have multiple logback versions living in the same class path?
      if so can you point out a way/tool to do it without conflicts.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            roland.jungnickel@idioplatform.com Roland Jungnickel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: