aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-11-23 17:29:08 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-11-24 11:07:11 +0100
commit6c78e87993ddadfcf90ca5b752264a1baf626264 (patch)
treed6af5fc728470aedb9b1f074930a6a88622b200f /sonar-plugin-api
parentf13ee89943334e4e770fd343efc5880f7a2f5896 (diff)
downloadsonarqube-6c78e87993ddadfcf90ca5b752264a1baf626264.tar.gz
sonarqube-6c78e87993ddadfcf90ca5b752264a1baf626264.zip
fix logback configuration in UTs to drastically reduce build verbosity
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/pom.xml5
-rw-r--r--sonar-plugin-api/src/test/resources/logback-test.xml22
2 files changed, 27 insertions, 0 deletions
diff --git a/sonar-plugin-api/pom.xml b/sonar-plugin-api/pom.xml
index bb2965c9caf..a49ee6b5e0f 100644
--- a/sonar-plugin-api/pom.xml
+++ b/sonar-plugin-api/pom.xml
@@ -227,6 +227,11 @@
<goals>
<goal>test-jar</goal>
</goals>
+ <configuration>
+ <excludes>
+ <exclude>logback-test.xml</exclude>
+ </excludes>
+ </configuration>
</execution>
</executions>
</plugin>
diff --git a/sonar-plugin-api/src/test/resources/logback-test.xml b/sonar-plugin-api/src/test/resources/logback-test.xml
new file mode 100644
index 00000000000..7cfba2985f6
--- /dev/null
+++ b/sonar-plugin-api/src/test/resources/logback-test.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<configuration debug="false">
+ <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>
+
+ <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
+ <pattern>
+ %d{yyyy.MM.dd HH:mm:ss} %-5level %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <root>
+ <level value="INFO"/>
+ <appender-ref ref="CONSOLE"/>
+ </root>
+
+ <logger name="ch.qos.logback">
+ <level value="WARN"/>
+ </logger>
+
+</configuration>