Skip to content

Commit 002e057

Browse files
SONARJAVA-6233 Add slf4j-simple to capture logs from the orchestrator (#5551)
1 parent b52d978 commit 002e057

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

its/plugin/tests/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@
6969
<artifactId>commons-lang3</artifactId>
7070
<scope>test</scope>
7171
</dependency>
72+
<dependency>
73+
<!-- Fixes "Defaulting to no-operation (NOP) logger", which results in missing logs from the orchestrator. -->
74+
<groupId>org.slf4j</groupId>
75+
<artifactId>slf4j-simple</artifactId>
76+
<version>${slf4j.version}</version>
77+
<scope>test</scope>
78+
</dependency>
7279
<dependency>
7380
<groupId>org.sonarsource.java</groupId>
7481
<artifactId>test-classpath-reader</artifactId>

its/ruling/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@
8484
<version>${project.version}</version>
8585
<scope>test</scope>
8686
</dependency>
87+
<dependency>
88+
<!-- Fixes "Defaulting to no-operation (NOP) logger", which results in missing logs from the orchestrator. -->
89+
<groupId>org.slf4j</groupId>
90+
<artifactId>slf4j-simple</artifactId>
91+
<version>${slf4j.version}</version>
92+
<scope>test</scope>
93+
</dependency>
8794
<!-- not a direct code dependency, but needed to download it and install it into SonarQube -->
8895
<dependency>
8996
<groupId>org.sonarsource.java</groupId>

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@
113113
<test-java-agent-directory>${project.build.directory}/test-java-agent-libs</test-java-agent-directory>
114114
<jacoco-agent-jar>org.jacoco.agent-${version.jacoco.plugin}-runtime.jar</jacoco-agent-jar>
115115
<mockito-agent-jar>mockito-core-${mockito-core.version}.jar</mockito-agent-jar>
116+
117+
<slf4j.version>1.7.30</slf4j.version>
116118
</properties>
117119

118120
<distributionManagement>
@@ -266,7 +268,7 @@
266268
<dependency>
267269
<groupId>org.slf4j</groupId>
268270
<artifactId>slf4j-api</artifactId>
269-
<version>1.7.30</version>
271+
<version>${slf4j.version}</version>
270272
<scope>test</scope>
271273
</dependency>
272274
<dependency>

0 commit comments

Comments
 (0)