|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" |
3 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
5 | 4 | <modelVersion>4.0.0</modelVersion>
|
6 | 5 |
|
7 | | - <groupId>org.example</groupId> |
8 | | - <artifactId>codechallenge-java-pom</artifactId> |
| 6 | + <groupId>com.example</groupId> |
| 7 | + <artifactId>junit5-jupiter-starter-maven</artifactId> |
9 | 8 | <version>1.0-SNAPSHOT</version>
|
10 | 9 |
|
11 | 10 | <properties>
|
12 | | - <maven.compiler.source>11</maven.compiler.source> |
13 | | - <maven.compiler.target>11</maven.compiler.target> |
14 | 11 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
| 12 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 13 | + <maven.compiler.target>${maven.compiler.source}</maven.compiler.target> |
15 | 14 | </properties>
|
16 | 15 |
|
| 16 | + <dependencyManagement> |
| 17 | + <dependencies> |
| 18 | + <dependency> |
| 19 | + <groupId>org.junit</groupId> |
| 20 | + <artifactId>junit-bom</artifactId> |
| 21 | + <version>5.9.1</version> |
| 22 | + <type>pom</type> |
| 23 | + <scope>import</scope> |
| 24 | + </dependency> |
| 25 | + </dependencies> |
| 26 | + </dependencyManagement> |
| 27 | + |
17 | 28 | <dependencies>
|
18 | | - <dependency> |
19 | | - <groupId>org.junit.platform</groupId> |
20 | | - <artifactId>junit-platform-runner</artifactId> |
21 | | - <version>1.9.0</version> |
22 | | - <scope>test</scope> |
23 | | - </dependency> |
24 | 29 | <dependency>
|
25 | 30 | <groupId>org.junit.jupiter</groupId>
|
26 | | - <artifactId>junit-jupiter-api</artifactId> |
27 | | - <version>5.9.0</version> |
| 31 | + <artifactId>junit-jupiter</artifactId> |
28 | 32 | <scope>test</scope>
|
29 | 33 | </dependency>
|
30 | 34 | <dependency>
|
31 | 35 | <groupId>org.junit.jupiter</groupId>
|
32 | 36 | <artifactId>junit-jupiter-params</artifactId>
|
33 | | - <version>5.9.0</version> |
| 37 | + <version>5.9.1</version> |
34 | 38 | <scope>test</scope>
|
35 | 39 | </dependency>
|
36 | | - <dependency> |
37 | | - <groupId>org.junit.jupiter</groupId> |
38 | | - <artifactId>junit-jupiter-engine</artifactId> |
39 | | - <version>5.9.0</version> |
40 | | - <scope>test</scope> |
41 | | - </dependency> |
42 | | - <dependency> |
43 | | - <groupId>org.junit.jupiter</groupId> |
44 | | - <artifactId>junit-jupiter-api</artifactId> |
45 | | - <version>5.9.0</version> |
46 | | - <scope>compile</scope> |
47 | | - </dependency> |
48 | 40 | </dependencies>
|
49 | 41 |
|
50 | 42 | <build>
|
51 | | - <sourceDirectory>src</sourceDirectory> |
52 | 43 | <plugins>
|
53 | 44 | <plugin>
|
54 | | - <groupId>org.codehaus.mojo</groupId> |
55 | | - <artifactId>exec-maven-plugin</artifactId> |
56 | | - <version>3.0.0</version> |
57 | | - <configuration> |
58 | | - <mainClass>main.java.com.oystercard.CLI</mainClass> |
59 | | - </configuration> |
| 45 | + <artifactId>maven-compiler-plugin</artifactId> |
| 46 | + <version>3.8.1</version> |
60 | 47 | </plugin>
|
61 | 48 | <plugin>
|
62 | | - <groupId>org.apache.maven.plugins</groupId> |
63 | | - <artifactId>maven-pmd-plugin</artifactId> |
64 | | - <version>3.16.0</version> |
65 | | - <configuration> |
66 | | - <rulesets> |
67 | | - <ruleset>/rulesets/java/braces.xml</ruleset> |
68 | | - <ruleset>/rulesets/java/naming.xml</ruleset> |
69 | | - </rulesets> |
70 | | - </configuration> |
71 | | - </plugin> |
72 | | - |
73 | | - <plugin> |
74 | | - <groupId>org.apache.maven.plugins</groupId> |
75 | 49 | <artifactId>maven-surefire-plugin</artifactId>
|
76 | | - <version>2.22.0</version> |
77 | | - <dependencies> |
78 | | - <dependency> |
79 | | - <groupId>org.junit.platform</groupId> |
80 | | - <artifactId>junit-platform-surefire-provider</artifactId> |
81 | | - <version>1.2.0</version> |
82 | | - </dependency> |
83 | | - </dependencies> |
| 50 | + <version>3.0.0-M6</version> |
84 | 51 | </plugin>
|
85 | 52 | <plugin>
|
86 | 53 | <groupId>org.apache.maven.plugins</groupId>
|
87 | | - <artifactId>maven-failsafe-plugin</artifactId> |
88 | | - <version>2.6</version> |
89 | | - <executions> |
90 | | - <execution> |
91 | | - <id>integration-test</id> |
92 | | - <goals> |
93 | | - <goal>integration-test</goal> |
94 | | - </goals> |
95 | | - </execution> |
96 | | - <!-- Uncomment/comment this in order to fail the build if any integration test fail --> |
97 | | - <execution> |
98 | | - <id>verify</id> |
99 | | - <goals><goal>verify</goal></goals> |
100 | | - </execution> |
101 | | - </executions> |
| 54 | + <artifactId>maven-compiler-plugin</artifactId> |
| 55 | + <configuration> |
| 56 | + <source>11</source> |
| 57 | + <target>11</target> |
| 58 | + </configuration> |
102 | 59 | </plugin>
|
103 | 60 | </plugins>
|
104 | 61 | </build>
|
|
0 commit comments