Skip to content

Commit 821421b

Browse files
committed
set logback file for build
1 parent 22b94eb commit 821421b

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

build/coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
mvn -DdryRun=true clean package coveralls:report -P coverage
2+
mvn -DdryRun=true -Dlogback.configurationFile=../../build/logback-build.xml clean package coveralls:report -P coverage

build/logback-build.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<encoder>
5+
<pattern>%-5p [%d{ISO8601}] [%thread] %msg%n</pattern>
6+
</encoder>
7+
</appender>
8+
9+
<root level="INFO">
10+
<appender-ref ref="STDOUT" />
11+
</root>
12+
</configuration>

build/sonar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
mvn -DdryRun=true -Dsonar.organization=jooby -Dsonar.host.url=https://sonarcloud.io -Dsonar.jacoco.reportPaths=modules/coverage-report/target/jacoco.exec -Dsonar.login=$SONAR_TOKEN -Dsonar.branch=master clean install coveralls:report sonar:sonar -P coverage
2+
mvn -DdryRun=true -Dlogback.configurationFile=../../build/logback-build.xml -Dsonar.organization=jooby -Dsonar.host.url=https://sonarcloud.io -Dsonar.jacoco.reportPaths=modules/coverage-report/target/jacoco.exec -Dsonar.login=$SONAR_TOKEN -Dsonar.branch=master clean install coveralls:report sonar:sonar -P coverage

0 commit comments

Comments
 (0)