Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-6525

Dependency io.debezium:debezium-testing-testcontainers affects logback in tests

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 2.4.0.Alpha1
    • None
    • testcontainers
    • None
    • Low

    Description

      Using `io.debezium:debezium-testing-testcontainers:2.2.1.Final` causes a logback-test.xml file to be picked up from the classpath as it depdends on `io.debezium:debezium-core:2.2.1.Final:test-jar`

      See 
      https://github.com/debezium/debezium/blob/main/debezium-testing/debezium-testing-testcontainers/pom.xml#L54
       
      Discussion on Google Groups:
      https://groups.google.com/g/debezium/c/aZRaZ_i3460/m/_-e7iNOEBAAJ
       
      Example log lines from using `io.debezium:debezium-testing-testcontainers:2.2.1.Final`

      16:47:52,200 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@2c07545f - Resource [logback-test.xml] occurs at [file:<snipped>/build/resources/test/logback-test.xml]16:47:52,200 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@2c07545f - Resource [logback-test.xml] occurs at [jar:file:<snipped>/.gradle/caches/modules-2/files-2.1/io.debezium/debezium-core/2.2.1.Final/540c1e8cee6be783b96d56d50cb570de2cb116d8/debezium-core-2.2.1.Final-tests.jar!/logback-test.xml]

       
      Proposed solutions:
      1. Exclude the logback-test.xml from being included in the generated test jar
      2. Remove the dependency on `io.debezium:debezium-core` test-jar by either duplicating the one class that's required or moving it to src/main/java and depending on `io.debezium:debezium-core:2.2.1.Final:`

      Attachments

        Activity

          People

            jcechace@redhat.com Jakub Čecháček
            ben.r.gilbert Ben Gilbert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: