Skip to content

Commit e22d1e3

Browse files
authored
Adding dependency on jacoco-maven-plugin (#19)
* Test * Depend on jacoco-maven-plugin 0.8.12 or later * ascii-tree * Adding dependency * Removed
1 parent 0b0490f commit e22d1e3

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

jacoco-console-reporter/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
<groupId>org.jacoco</groupId>
6565
<artifactId>org.jacoco.core</artifactId>
6666
</dependency>
67+
<dependency>
68+
<groupId>org.jacoco</groupId>
69+
<artifactId>jacoco-maven-plugin</artifactId>
70+
</dependency>
6771

6872
<!-- Lombok -->
6973
<dependency>

jacoco-console-reporter/src/main/java/io/github/svaningelgem/Defaults.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
import org.jetbrains.annotations.NotNull;
55

66
public class Defaults {
7+
private static final boolean USE_ASCII = false; // disabled for now
8+
79
// Define column widths
810
static final int PACKAGE_WIDTH = 50;
911
static final int METRICS_WIDTH = 20;
1012

1113
// Define tree characters based on terminal capabilities
1214
static final String LAST_DIR_SPACE = " ";
13-
static final String VERTICAL_LINE = "│ ";
14-
static final String TEE = "├─";
15-
static final String CORNER = "└─";
15+
static final String VERTICAL_LINE = USE_ASCII ? "| " : "│ ";
16+
static final String TEE = USE_ASCII ? "+-" : "├─";
17+
static final String CORNER = USE_ASCII ? "\\-" : "└─";
1618

1719
static final String DIVIDER = getDivider();
1820
static final String LINE_FORMAT = "%-" + PACKAGE_WIDTH + "s " + VERTICAL_LINE + "%-" + METRICS_WIDTH + "s " + VERTICAL_LINE + "%-" + METRICS_WIDTH + "s " + VERTICAL_LINE + "%-" + METRICS_WIDTH + "s " + VERTICAL_LINE + "%-" + METRICS_WIDTH + "s";

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@
8383
<scope>compile</scope>
8484
</dependency>
8585

86+
<dependency>
87+
<groupId>org.jacoco</groupId>
88+
<artifactId>jacoco-maven-plugin</artifactId>
89+
<version>[${jacoco.version},)</version>
90+
<scope>provided</scope>
91+
</dependency>
92+
8693
<!-- Logging -->
8794
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
8895
<dependency>

0 commit comments

Comments
 (0)