[
https://issues.apache.org/jira/browse/SLING-4470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert resolved SLING-4470.
-----------------------------------
Resolution: Fixed
Fix Version/s: Testing Logging Mock 1.0.0
Testing Sling Mock 1.3.0
Testing OSGi Mock 1.3.0
Testing Sling Mock Jackrabbit 0.1.4
Assignee: Stefan Seifert
Completed: At revision: 1680753
introduced a new project "logging-mock" which contains only the slf4j-simple
dependency and default configuration file for it.
the other mock projects dependy only with "test" dependency on it, so this
dependency is not inherited to projects using the mocks, they can decide to us
it or not by declaring a dependency on:
{code:xml}
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.testing.logging-mock</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
{code}
> OSGi mock has compile time dependency on slf4j-simple
> -----------------------------------------------------
>
> Key: SLING-4470
> URL: https://issues.apache.org/jira/browse/SLING-4470
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Testing OSGi Mock 1.2.0
> Reporter: Chetan Mehrotra
> Assignee: Stefan Seifert
> Priority: Minor
> Labels: mocks
> Fix For: Testing Sling Mock Jackrabbit 0.1.4, Testing OSGi Mock
> 1.3.0, Testing Sling Mock 1.3.0, Testing Logging Mock 1.0.0
>
>
> org.apache.sling.testing.osgi-mock has a compile time dependency on
> slf4j-simple which triggers warning by slf4j
> {noformat}
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/home/user/.m2/repository/ch/qos/logback/logback-classic/1.1.0/logback-classic-1.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/home/user/.m2/repository/org/slf4j/slf4j-simple/1.7.6/slf4j-simple-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> {noformat}
> Scope for slf4j-simple should be test or provided
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)