Skip to content

Commit 1a34f85

Browse files
authored
#5 Added Sonar Cloud setup (#7)
1 parent b772aef commit 1a34f85

File tree

6 files changed

+27
-10
lines changed

6 files changed

+27
-10
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ language: java
22
sudo: required
33
matrix:
44
include:
5-
- jdk: openjdk11
5+
- jdk: openjdk11
66
addons:
77
sonarcloud:
88
organization: exasol
9-
9+
token:
10+
secure: AgZwCb56VbdlHlyTAsRi99yVB/+/inLhki2+mzMWf5BJ8IZhjJNN5zRP+gmjf0sjHwKtL3NdoPeqjMy3Q4+UxhydEd3mbZ8NaIYeQ3ZBE9zBZqBCEG15TfVCL9gSNkXuFfmpdyQt+MdnzkL9/vUKlMajfUuywDj/4FOzCW6PfPrDCvxHEUwkmWYLCTqxnDAGJu6ogb8RrpOqoWSOyUH2hMm+Qm5YKY9+xn+UjfD0kApv868BF1g7Jgz6PYv1hiQMwPjTNlI1ISuom3RXY5QtNSchB7/ZLK3KXpbpwjDNh+AfDFCrrCNiHM24kIp4gwJoyjg4wh/ao3umTalIR3iVErMmz7F/Mbd7ZJHNFC9rqXbgzrj1rySYJ0QemeI7FvTqdRQTaXENlz45sw3YRf4PU/Palpga/RCqwFYxuF5wErSngMOFVvaxjxYUDrNz3aO4v1ZYCOksKM7LhnOPE+sqrZAWBRDU+iKfevoLXUpfWMfedKYVQAqO+tqgolxPSUVmyfzgQC1vqhVrcDbXHFXfE5hJdCUd9YN4PJo98EtUXou4SGp6dpwRn/D9M3nZjOsfpahPFMYYzfaBpIIG6AEN6eGVbE9AA94x/tMKdhlUcEiHBA57YbyvHly8wA8wHoMWFWe7QxE7cP3afi/ognfHRb77/Ay0ggcG1CT9VeCov6A=
1011
script:
1112
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent org.jacoco:jacoco-maven-plugin:prepare-agent-integration
12-
verify
13-
#sonar:sonar -Dsonar.login=${SONAR_TOKEN} -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,target/site/jacoco-udf/jacoco.xml
13+
verify sonar:sonar -Dsonar.login=${SONAR_TOKEN} -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,target/site/jacoco-udf/jacoco.xml
1414
cache:
1515
directories:
1616
- "$HOME/.m2"

doc/changes/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Changes
22

3+
* [0.2.0](changes_0.2.0.md)
34
* [0.1.0](changes_0.1.0.md)

doc/changes/changes_0.2.0.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# udf-debugging-java 0.2.0, released 2020-XX-XX
2+
3+
Code name:
4+
5+
## Features / Enhancements
6+
7+
* #5: Sonar Cloud setup
8+
* #6: Changed default value of getSelectionThatIsSentToTheAdapter to empty string
9+
10+
## Dependency Updates:
11+
12+
* `com:exasol:project-keeper-maven-plugin` from 0.1.0 to 0.2.0

pom.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.exasol</groupId>
66
<artifactId>udf-debugging-java</artifactId>
7-
<version>0.1.0</version>
7+
<version>0.2.0</version>
88
<name>udf-debugging-java</name>
99
<description>Utilities for debugging, profiling and code coverage measure for UDFs.</description>
1010
<url>https://github.com/exasol/udf-debugging-javat</url>
@@ -131,9 +131,7 @@
131131
<configuration>
132132
<!-- Set the highest log level for coverage testing, so that we
133133
have a chance to reach branches in the logging lambdas too. -->
134-
<argLine>-Djava.util.logging.config.file=src/test/resources/logging.properties
135-
${argLine}
136-
</argLine>
134+
<argLine>-Djava.util.logging.config.file=src/test/resources/logging.properties ${argLine}</argLine>
137135
<excludes>
138136
<exclude>**IT.java</exclude>
139137
</excludes>
@@ -344,7 +342,7 @@
344342
<plugin>
345343
<groupId>com.exasol</groupId>
346344
<artifactId>project-keeper-maven-plugin</artifactId>
347-
<version>0.1.0</version>
345+
<version>0.2.0</version>
348346
<executions>
349347
<execution>
350348
<goals>

src/main/java/com/exasol/udfdebugging/PushDownTesting.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static String getSelectionThatIsSentToTheAdapter(final Statement statemen
2424
final String pushdownJson = pushDownSqlResult.getString("PUSHDOWN_JSON");
2525
try (final JsonReader reader = Json.createReader(new StringReader(pushdownJson))) {
2626
final JsonObject response = reader.readArray().get(2).asJsonObject();
27-
return response.getJsonObject("pushdownRequest").getString("filter_expr_string_for_debug");
27+
return response.getJsonObject("pushdownRequest").getString("filter_expr_string_for_debug", "");
2828
}
2929
}
3030
}

src/test/resources/logging.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
handlers=java.util.logging.ConsoleHandler
2+
.level=INFO
3+
java.util.logging.ConsoleHandler.level=ALL
4+
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
5+
java.util.logging.SimpleFormatter.format=%1$tF %1$tT.%1$tL [%4$-7s] %5$s %n
6+
com.exasol=ALL

0 commit comments

Comments
 (0)