|
38 | 38 | <properties> |
39 | 39 | <projec.build.sourceEncodingt>UTF-8</projec.build.sourceEncodingt> |
40 | 40 | <skipTest>true</skipTest> |
| 41 | + <java.version>1.8</java.version> |
| 42 | + <junit.version>4.12</junit.version> |
| 43 | + <junit.jupiter.version>5.0.1</junit.jupiter.version> |
| 44 | + <junit.vintage.version>${junit.version}.1</junit.vintage.version> |
| 45 | + <junit.platform.version>1.0.1</junit.platform.version> |
41 | 46 | </properties> |
42 | 47 |
|
43 | 48 | <build> |
|
48 | 53 | <artifactId>maven-compiler-plugin</artifactId> |
49 | 54 | <version>3.7.0</version> |
50 | 55 | <configuration> |
51 | | - <source>1.8</source> |
52 | | - <target>1.8</target> |
| 56 | + <source>${java.version}</source> |
| 57 | + <target>${java.version}</target> |
53 | 58 | </configuration> |
54 | 59 | </plugin> |
55 | 60 | <!-- Compiling source --> |
|
110 | 115 | </execution> |
111 | 116 | </executions> |
112 | 117 | </plugin> |
| 118 | + <!-- Junit Test (JUnit 5) --> |
| 119 | + <plugin> |
| 120 | + <groupId>org.apache.maven.plugins</groupId> |
| 121 | + <artifactId>maven-surefire-plugin</artifactId> |
| 122 | + <version>2.19.1</version> |
| 123 | + <configuration> |
| 124 | + <includes> |
| 125 | + <include>**/Test*.java</include> |
| 126 | + <include>**/*Test.java</include> |
| 127 | + <include>**/*Tests.java</include> |
| 128 | + <include>**/*TestCase.java</include> |
| 129 | + </includes> |
| 130 | + <properties> |
| 131 | + <excludeTags>slow</excludeTags> |
| 132 | + </properties> |
| 133 | + </configuration> |
| 134 | + <dependencies> |
| 135 | + <dependency> |
| 136 | + <groupId>org.junit.platform</groupId> |
| 137 | + <artifactId>junit-platform-surefire-provider</artifactId> |
| 138 | + <version>${junit.platform.version}</version> |
| 139 | + </dependency> |
| 140 | + </dependencies> |
| 141 | + </plugin> |
113 | 142 | </plugins> |
114 | 143 | </build> |
115 | 144 |
|
|
131 | 160 | <artifactId>jackson-dataformat-xml</artifactId> |
132 | 161 | <version>2.9.1</version> |
133 | 162 | </dependency> |
| 163 | + <!-- ROME for getting history from https://status.hirezstudios.com/ --> |
134 | 164 | <dependency> |
135 | 165 | <groupId>com.rometools</groupId> |
136 | 166 | <artifactId>rome</artifactId> |
137 | 167 | <version>1.8.0</version> |
138 | 168 | <scope>compile</scope> |
139 | 169 | </dependency> |
| 170 | + <!-- HTML formatter --> |
140 | 171 | <dependency> |
141 | 172 | <groupId>org.jsoup</groupId> |
142 | 173 | <artifactId>jsoup</artifactId> |
|
149 | 180 | <version>1.7.25</version> |
150 | 181 | <scope>provided</scope> |
151 | 182 | </dependency> |
| 183 | + |
| 184 | + <!-- Junit 5 --> |
152 | 185 | <dependency> |
153 | 186 | <groupId>org.junit.jupiter</groupId> |
154 | 187 | <artifactId>junit-jupiter-api</artifactId> |
155 | | - <version>5.0.0</version> |
| 188 | + <version>${junit.jupiter.version}</version> |
| 189 | + <scope>test</scope> |
| 190 | + </dependency> |
| 191 | + <dependency> |
| 192 | + <groupId>junit</groupId> |
| 193 | + <artifactId>junit</artifactId> |
| 194 | + <version>${junit.version}</version> |
| 195 | + <scope>test</scope> |
| 196 | + </dependency> |
| 197 | + <!-- Only required to run tests in an IDE that bundles an older version --> |
| 198 | + <dependency> |
| 199 | + <groupId>org.junit.platform</groupId> |
| 200 | + <artifactId>junit-platform-launcher</artifactId> |
| 201 | + <version>${junit.platform.version}</version> |
| 202 | + <scope>test</scope> |
| 203 | + </dependency> |
| 204 | + <!-- Only required to run tests in an IDE that bundles an older version --> |
| 205 | + <dependency> |
| 206 | + <groupId>org.junit.jupiter</groupId> |
| 207 | + <artifactId>junit-jupiter-engine</artifactId> |
| 208 | + <version>${junit.jupiter.version}</version> |
| 209 | + <scope>test</scope> |
| 210 | + </dependency> |
| 211 | + <!-- Only required to run tests in an IDE that bundles an older version --> |
| 212 | + <dependency> |
| 213 | + <groupId>org.junit.vintage</groupId> |
| 214 | + <artifactId>junit-vintage-engine</artifactId> |
| 215 | + <version>${junit.vintage.version}</version> |
| 216 | + <scope>test</scope> |
| 217 | + </dependency> |
| 218 | + <!-- To avoid compiler warnings about @API annotations in JUnit code --> |
| 219 | + <dependency> |
| 220 | + <groupId>org.apiguardian</groupId> |
| 221 | + <artifactId>apiguardian-api</artifactId> |
| 222 | + <version>1.0.0</version> |
156 | 223 | <scope>test</scope> |
157 | 224 | </dependency> |
158 | 225 | </dependencies> |
|
0 commit comments