Skip to content

Commit

Permalink
POMs: jcl/log4j-over-slf4j declared in infra/common (runtime)
Browse files Browse the repository at this point in the history
1) Other usages were removed along with jul-to-slf4j - it all comes
transitively with infra/common.
2) Also added redirectTestOutputToFile property (used by surefire and
failsafe) so we can override the default "true" (was hardcoded before).
3) jcl-over-slf4j is ignored from used-undeclared report, false alarm.
  • Loading branch information
virgo47 committed Feb 14, 2020
1 parent 097da41 commit 8994a8e
Show file tree
Hide file tree
Showing 25 changed files with 18 additions and 239 deletions.
11 changes: 0 additions & 11 deletions gui/admin-gui/pom.xml
Expand Up @@ -770,17 +770,6 @@

<!-- end connectors -->

<!-- logging bridges to slf4j -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>runtime</scope>
</dependency>
<!-- Jasper reports -->
<dependency>
<groupId>net.sf.jasperreports</groupId>
Expand Down
12 changes: 11 additions & 1 deletion infra/common/pom.xml
Expand Up @@ -99,11 +99,21 @@
<groupId>org.codehaus.staxmate</groupId>
<artifactId>staxmate</artifactId>
</dependency>
<!-- Adding logging bridges for JUL, commons-logging and log4j (3rd party libs needs). -->
<dependency>
<!-- Some of the the third-party libs are still using JUL. We want them in our logs. -->
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions model/certification-impl/pom.xml
Expand Up @@ -210,16 +210,6 @@
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.evolveum.midpoint.repo</groupId>
<artifactId>repo-test-util</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions model/model-impl/pom.xml
Expand Up @@ -388,16 +388,6 @@
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions model/model-intest/pom.xml
Expand Up @@ -267,16 +267,6 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions model/model-test/pom.xml
Expand Up @@ -263,15 +263,5 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
10 changes: 0 additions & 10 deletions model/report-impl/pom.xml
Expand Up @@ -291,16 +291,6 @@
<artifactId>spring-aop</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions model/workflow-impl/pom.xml
Expand Up @@ -210,16 +210,6 @@
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.evolveum.midpoint.repo</groupId>
<artifactId>repo-test-util</artifactId>
Expand Down
9 changes: 7 additions & 2 deletions pom.xml
Expand Up @@ -120,6 +120,8 @@
See model/model-intest for example, how to do it.
-->
<integrationTestSuite>full</integrationTestSuite>
<!-- Controls both surefire and failsafe config/redirectTestOutputToFile setting. -->
<redirectTestOutputToFile>true</redirectTestOutputToFile>

<!-- Dependencies global versions -->
<commons.io.version>2.6</commons.io.version>
Expand Down Expand Up @@ -1660,6 +1662,7 @@
<excludes>
<!-- replaced by org.slf4j:jcl-over-slf4j -->
<exclude>commons-logging:commons-logging</exclude>
<exclude>org.springframework:spring-jcl</exclude>
</excludes>
</bannedDependencies>
</rules>
Expand Down Expand Up @@ -1727,6 +1730,8 @@
<ignoredUsedUndeclaredDependency>org.danekja:jdk-serializable-functional</ignoredUsedUndeclaredDependency>
<!-- TODO: scope test can help with this kind (runtime for non-test starters) -->
<ignoredUsedUndeclaredDependency>org.springframework.boot:spring-boot-test</ignoredUsedUndeclaredDependency>
<!-- This is falsely reported, we never use it explicitly, only on runtime. -->
<ignoredUsedUndeclaredDependency>org.slf4j:jcl-over-slf4j</ignoredUsedUndeclaredDependency>
</ignoredUsedUndeclaredDependencies>
</configuration>
</execution>
Expand Down Expand Up @@ -1877,7 +1882,7 @@
<parallel>false</parallel>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<!-- <threadCount>1</threadCount> -->
<!-- <perCoreThreadCount>false</perCoreThreadCount> -->
<!-- <reportFormat>plain</reportFormat> -->
Expand Down Expand Up @@ -1940,7 +1945,7 @@
</execution>
</executions>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<systemPropertyVariables>
<javax.net.ssl.trustStore>src/test/resources/truststore.jks</javax.net.ssl.trustStore>
<midpoint.home>target/midpoint-home</midpoint.home>
Expand Down
10 changes: 0 additions & 10 deletions provisioning/provisioning-impl/pom.xml
Expand Up @@ -221,16 +221,6 @@
<artifactId>connector-csv</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.evolveum.icf</groupId>
<artifactId>dummy-connector</artifactId>
Expand Down
15 changes: 0 additions & 15 deletions provisioning/ucf-impl-connid/pom.xml
Expand Up @@ -95,11 +95,6 @@
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<scope>runtime</scope>
</dependency>

<!-- Testing dependecies -->
<dependency>
Expand Down Expand Up @@ -198,16 +193,6 @@
<artifactId>connector-csv</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.evolveum.icf</groupId>
<artifactId>dummy-connector</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions repo/audit-impl/pom.xml
Expand Up @@ -110,16 +110,6 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<!-- TODO: reconsider, currently there is just one test commented out in the suite file -->
Expand Down
10 changes: 0 additions & 10 deletions repo/repo-cache/pom.xml
Expand Up @@ -118,16 +118,6 @@
<artifactId>spring-aop</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.cache2k</groupId>
<artifactId>cache2k-core</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions repo/security-impl/pom.xml
Expand Up @@ -140,16 +140,6 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.evolveum.midpoint.model</groupId>
<artifactId>model-api</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions repo/system-init/pom.xml
Expand Up @@ -129,16 +129,6 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
10 changes: 0 additions & 10 deletions repo/task-quartz-impl/pom.xml
Expand Up @@ -225,16 +225,6 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
10 changes: 0 additions & 10 deletions testing/conntest/pom.xml
Expand Up @@ -207,16 +207,6 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions testing/longtest/pom.xml
Expand Up @@ -203,16 +203,6 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions testing/rest/pom.xml
Expand Up @@ -237,16 +237,6 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
Expand Down
10 changes: 0 additions & 10 deletions testing/samples-test/pom.xml
Expand Up @@ -189,16 +189,6 @@
<version>4.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
Expand Down

0 comments on commit 8994a8e

Please sign in to comment.