43
43
44
44
</dependencies >
45
45
46
- <profiles >
47
- <profile >
48
- <id >eclipse</id >
49
- <dependencies >
50
- <dependency >
51
- <groupId >org.junit.jupiter</groupId >
52
- <artifactId >junit-jupiter-engine</artifactId >
53
- </dependency >
54
- <dependency >
55
- <groupId >org.junit.platform</groupId >
56
- <artifactId >junit-platform-launcher</artifactId >
57
- <version >1.6.0</version >
58
- <scope >test</scope >
59
- </dependency >
60
- </dependencies >
61
- <dependencyManagement >
46
+ <build >
47
+ <plugins >
48
+ <plugin >
49
+ <groupId >org.apache.maven.plugins</groupId >
50
+ <artifactId >maven-compiler-plugin</artifactId >
51
+ <version >3.8.0</version >
52
+ </plugin >
53
+ <plugin >
54
+ <groupId >org.apache.maven.plugins</groupId >
55
+ <artifactId >maven-surefire-plugin</artifactId >
56
+ <version >${maven-surefire-plugin.version} </version >
62
57
<dependencies >
58
+ <!-- let surefire run JUnit 4 but also JUnit 5 tests -->
63
59
<dependency >
64
- <groupId >org.junit.jupiter</groupId >
65
- <artifactId >junit-jupiter-engine</artifactId >
66
- <version >${junit5.version} </version >
67
- <scope >test</scope >
60
+ <groupId >org.junit.platform</groupId >
61
+ <artifactId >junit-platform-surefire-provider</artifactId >
62
+ <version >${junit.platform.version} </version >
68
63
</dependency >
64
+ <!-- let JUnit vintage engine run JUnit 3 or JUnit 4 tests -->
69
65
<dependency >
70
- <groupId >org.junit.platform</groupId >
71
- <artifactId >junit-platform-launcher</artifactId >
72
- <version >1.1.1</version >
73
- <scope >test</scope >
66
+ <groupId >org.junit.vintage</groupId >
67
+ <artifactId >junit-vintage-engine</artifactId >
68
+ <version >${junit.vintage.version} </version >
69
+ </dependency >
70
+ <!-- let JUnit 5 engine run JUnit 5 tests -->
71
+ <dependency >
72
+ <groupId >org.junit.jupiter</groupId >
73
+ <artifactId >junit-jupiter-engine</artifactId >
74
+ <version >${junit.jupiter.version} </version >
74
75
</dependency >
75
76
</dependencies >
76
- </dependencyManagement >
77
- </profile >
78
- </profiles >
77
+ </plugin >
78
+
79
+ </plugins >
80
+ </build >
79
81
80
82
</project >
0 commit comments