Skip to content

Commit 3520766

Browse files
Merge pull request #107 from refactorfirst/render-dot-graphs-in-maven-report
Render dot graphs in maven report and log parsed sources
2 parents 691e632 + 91d5300 commit 3520766

File tree

15 files changed

+186
-50
lines changed

15 files changed

+186
-50
lines changed

change-proneness-ranker/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.hjug.refactorfirst</groupId>
77
<artifactId>refactor-first</artifactId>
8-
<version>0.5.1-SNAPSHOT</version>
8+
<version>0.6.0-SNAPSHOT</version>
99
</parent>
1010

1111
<groupId>org.hjug.refactorfirst.changepronenessranker</groupId>

circular-reference-detector/pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.hjug.refactorfirst</groupId>
66
<artifactId>refactor-first</artifactId>
7-
<version>0.5.1-SNAPSHOT</version>
7+
<version>0.6.0-SNAPSHOT</version>
88
</parent>
99

1010
<groupId>org.hjug.refactorfirst.circularreferencedetector</groupId>
@@ -13,6 +13,16 @@
1313
<description>Tool to help detecting circular references by parsing a java project.</description>
1414

1515
<dependencies>
16+
<dependency>
17+
<groupId>org.projectlombok</groupId>
18+
<artifactId>lombok</artifactId>
19+
<version>${lombok.version}</version>
20+
</dependency>
21+
<dependency>
22+
<groupId>org.slf4j</groupId>
23+
<artifactId>slf4j-api</artifactId>
24+
<version>1.7.26</version>
25+
</dependency>
1626
<dependency>
1727
<groupId>org.jgrapht</groupId>
1828
<artifactId>jgrapht-core</artifactId>
@@ -35,6 +45,7 @@
3545
<version>5.9.0</version>
3646
<scope>test</scope>
3747
</dependency>
48+
3849
</dependencies>
3950

4051
<build>

circular-reference-detector/src/main/java/org/hjug/parser/JavaProjectParser.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
import java.util.*;
1515
import java.util.stream.Collectors;
1616
import java.util.stream.Stream;
17+
import lombok.extern.slf4j.Slf4j;
1718
import org.jgrapht.Graph;
1819
import org.jgrapht.graph.DefaultDirectedWeightedGraph;
1920
import org.jgrapht.graph.DefaultWeightedEdge;
2021

22+
@Slf4j
2123
public class JavaProjectParser {
2224

2325
/**
@@ -37,6 +39,7 @@ public Graph<String, DefaultWeightedEdge> getClassReferences(String srcDirectory
3739
filesStream
3840
.filter(path -> path.getFileName().toString().endsWith(".java"))
3941
.forEach(path -> {
42+
log.info("Parsing {}", path);
4043
List<String> types = getInstanceVarTypes(classNames, path.toFile());
4144
types.addAll(getMethodArgumentTypes(classNames, path.toFile()));
4245
if (!types.isEmpty()) {

cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.hjug.refactorfirst</groupId>
66
<artifactId>refactor-first</artifactId>
7-
<version>0.5.1-SNAPSHOT</version>
7+
<version>0.6.0-SNAPSHOT</version>
88
</parent>
99

1010
<packaging>jar</packaging>

cost-benefit-calculator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.hjug.refactorfirst</groupId>
77
<artifactId>refactor-first</artifactId>
8-
<version>0.5.1-SNAPSHOT</version>
8+
<version>0.6.0-SNAPSHOT</version>
99
</parent>
1010

1111
<groupId>org.hjug.refactorfirst.costbenefitcalculator</groupId>

coverage/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.hjug.refactorfirst</groupId>
99
<artifactId>refactor-first</artifactId>
10-
<version>0.5.1-SNAPSHOT</version>
10+
<version>0.6.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>coverage</artifactId>

effort-ranker/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.hjug.refactorfirst</groupId>
77
<artifactId>refactor-first</artifactId>
8-
<version>0.5.1-SNAPSHOT</version>
8+
<version>0.6.0-SNAPSHOT</version>
99
</parent>
1010

1111
<groupId>org.hjug.refactorfirst.effortranker</groupId>
@@ -20,7 +20,7 @@
2020
<dependency>
2121
<groupId>org.hjug.refactorfirst.testresources</groupId>
2222
<artifactId>test-resources</artifactId>
23-
<version>0.5.1-SNAPSHOT</version>
23+
<version>0.6.0-SNAPSHOT</version>
2424
</dependency>
2525

2626
<dependency>

graph-data-generator/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.hjug.refactorfirst</groupId>
77
<artifactId>refactor-first</artifactId>
8-
<version>0.5.1-SNAPSHOT</version>
8+
<version>0.6.0-SNAPSHOT</version>
99
</parent>
1010

1111
<groupId>org.hjug.refactorfirst.graphdatagenerator</groupId>
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>org.hjug.refactorfirst.costbenefitcalculator</groupId>
1717
<artifactId>cost-benefit-calculator</artifactId>
18-
<version>0.5.1-SNAPSHOT</version>
18+
<version>0.6.0-SNAPSHOT</version>
1919
</dependency>
2020
</dependencies>
2121

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.hjug.refactorfirst</groupId>
66
<artifactId>refactor-first</artifactId>
7-
<version>0.5.1-SNAPSHOT</version>
7+
<version>0.6.0-SNAPSHOT</version>
88
<packaging>pom</packaging>
99

1010
<url>https://github.com/refactorfirst/RefactorFirst</url>

refactor-first-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.hjug.refactorfirst</groupId>
77
<artifactId>refactor-first</artifactId>
8-
<version>0.5.1-SNAPSHOT</version>
8+
<version>0.6.0-SNAPSHOT</version>
99
</parent>
1010

1111
<groupId>org.hjug.refactorfirst.plugin</groupId>

0 commit comments

Comments
 (0)