Skip to content

Commit 6d1fcde

Browse files
authored
Merge pull request #938 from jplag/dependency-cleanup
Clean-up dependencies of the core project
2 parents eeb755b + e76c4a7 commit 6d1fcde

File tree

2 files changed

+2
-67
lines changed

2 files changed

+2
-67
lines changed

core/pom.xml

+1-42
Original file line numberDiff line numberDiff line change
@@ -25,54 +25,13 @@
2525
<artifactId>language-api</artifactId>
2626
<version>${revision}</version>
2727
</dependency>
28+
<!-- the core project only requires one language module for testing: -->
2829
<dependency>
2930
<groupId>de.jplag</groupId>
3031
<artifactId>java</artifactId>
3132
<version>${revision}</version>
3233
<scope>test</scope>
3334
</dependency>
34-
<dependency>
35-
<groupId>de.jplag</groupId>
36-
<artifactId>cpp</artifactId>
37-
<version>${revision}</version>
38-
<scope>test</scope>
39-
</dependency>
40-
<dependency>
41-
<groupId>de.jplag</groupId>
42-
<artifactId>rlang</artifactId>
43-
<version>${revision}</version>
44-
<scope>test</scope>
45-
</dependency>
46-
<dependency>
47-
<groupId>de.jplag</groupId>
48-
<artifactId>golang</artifactId>
49-
<version>${revision}</version>
50-
<scope>test</scope>
51-
</dependency>
52-
<dependency>
53-
<groupId>de.jplag</groupId>
54-
<artifactId>scala</artifactId>
55-
<version>${revision}</version>
56-
<scope>test</scope>
57-
</dependency>
58-
<dependency>
59-
<groupId>de.jplag</groupId>
60-
<artifactId>kotlin</artifactId>
61-
<version>${revision}</version>
62-
<scope>test</scope>
63-
</dependency>
64-
<dependency>
65-
<groupId>de.jplag</groupId>
66-
<artifactId>emf-metamodel</artifactId>
67-
<version>${revision}</version>
68-
<scope>test</scope>
69-
</dependency>
70-
<dependency>
71-
<groupId>de.jplag</groupId>
72-
<artifactId>emf-metamodel-dynamic</artifactId>
73-
<version>${revision}</version>
74-
<scope>test</scope>
75-
</dependency>
7635
</dependencies>
7736

7837
<build>

core/src/test/java/de/jplag/special/TokenPrinterTest.java

+1-25
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,12 @@ class TokenPrinterTest extends TestBase {
2525
private static final int MIN_TOKEN_MATCH = 5;
2626
private static final String PRINTER_FOLDER = "PRINTER"; // in the folder 'jplag/src/test/resources/samples'
2727

28-
@Disabled("Not a meaningful test, used for designing the token set")
29-
@Test
30-
void printCPPFiles() {
31-
printSubmissions(options -> options.withLanguageOption(new de.jplag.cpp.Language()).withMinimumTokenMatch(MIN_TOKEN_MATCH));
32-
}
33-
34-
@Disabled("Not a meaningful test, used for designing the token set")
28+
@Disabled("Not a meaningful test, used for designing the token set. Can be implemented for other languages.")
3529
@Test
3630
void printJavaFiles() {
3731
printSubmissions(options -> options.withMinimumTokenMatch(MIN_TOKEN_MATCH));
3832
}
3933

40-
@Disabled("Not a meaningful test, used for designing the token set")
41-
@Test
42-
void printRLangFiles() {
43-
printSubmissions(options -> options.withLanguageOption(new de.jplag.rlang.Language()).withMinimumTokenMatch(MIN_TOKEN_MATCH));
44-
}
45-
46-
@Disabled("Not a meaningful test, used for designing the token set")
47-
@Test
48-
void printGoFiles() {
49-
printSubmissions(options -> options.withLanguageOption(new de.jplag.golang.Language()));
50-
}
51-
52-
@Disabled("Not a meaningful test, used for designing the token set")
53-
@Test
54-
void printKotlinFiles() {
55-
printSubmissions(options -> options.withLanguageOption(new de.jplag.kotlin.Language()));
56-
}
57-
5834
private void printSubmissions(Function<JPlagOptions, JPlagOptions> optionsCustomization) {
5935
try {
6036
JPlagResult result = runJPlag(PRINTER_FOLDER, optionsCustomization);

0 commit comments

Comments
 (0)