|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ Licensed to the Apache Software Foundation (ASF) under one |
| 4 | + ~ or more contributor license agreements. See the NOTICE file |
| 5 | + ~ distributed with this work for additional information |
| 6 | + ~ regarding copyright ownership. The ASF licenses this file |
| 7 | + ~ to you under the Apache License, Version 2.0 (the |
| 8 | + ~ "License"); you may not use this file except in compliance |
| 9 | + ~ with the License. You may obtain a copy of the License at |
| 10 | + ~ |
| 11 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | + ~ |
| 13 | + ~ Unless required by applicable law or agreed to in writing, |
| 14 | + ~ software distributed under the License is distributed on an |
| 15 | + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | + ~ KIND, either express or implied. See the License for the |
| 17 | + ~ specific language governing permissions and limitations |
| 18 | + ~ under the License. |
| 19 | + --> |
| 20 | + |
| 21 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 22 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 23 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 24 | + <modelVersion>4.0.0</modelVersion> |
| 25 | + |
| 26 | + <groupId>org.example</groupId> |
| 27 | + <artifactId>junit5-suite</artifactId> |
| 28 | + <version>1.0-SNAPSHOT</version> |
| 29 | + |
| 30 | + <properties> |
| 31 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 32 | + <maven.compiler.source>${java.specification.version}</maven.compiler.source> |
| 33 | + <maven.compiler.target>${java.specification.version}</maven.compiler.target> |
| 34 | + </properties> |
| 35 | + |
| 36 | + <dependencies> |
| 37 | + <dependency> |
| 38 | + <groupId>org.junit.jupiter</groupId> |
| 39 | + <artifactId>junit-jupiter-api</artifactId> |
| 40 | + <!-- |
| 41 | + The engine uses version 5.8.2. Due to the JUnit5 modularity model splits api and implementation, |
| 42 | + the implementations should be backwards compatible with older versions of api, we are testing this corner case |
| 43 | + for internal Surefire requirements. The user may or may not split the api and impl and versions. |
| 44 | + --> |
| 45 | + <version>5.7.2</version> |
| 46 | + <scope>test</scope> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>org.junit.platform</groupId> |
| 50 | + <artifactId>junit-platform-suite-api</artifactId> |
| 51 | + <!-- |
| 52 | + The engine uses version 5.8.2. Due to the JUnit5 modularity model splits api and implementation, |
| 53 | + the implementations should be backwards compatible with old versions of api, we are testing this corner case |
| 54 | + for internal Surefire requirements. The user may or may not split the api and impl and versions. |
| 55 | + --> |
| 56 | + <version>1.7.2</version> |
| 57 | + <scope>test</scope> |
| 58 | + </dependency> |
| 59 | + </dependencies> |
| 60 | + |
| 61 | + <build> |
| 62 | + <pluginManagement> |
| 63 | + <plugins> |
| 64 | + <plugin> |
| 65 | + <groupId>org.apache.maven.plugins</groupId> |
| 66 | + <artifactId>maven-surefire-plugin</artifactId> |
| 67 | + <version>${surefire.version}</version> |
| 68 | + <configuration> |
| 69 | + <test>JUnit5Tests</test> |
| 70 | + </configuration> |
| 71 | + <dependencies> |
| 72 | + <!-- |
| 73 | + You may split the impl from api as follows. It avoids a situation where your tests have |
| 74 | + direct access to the engine internals. |
| 75 | + The impl:5.8.2 should be backwards with api:1.7.2 and one limitation where you would not observe |
| 76 | + features introduced in 1.8.0 and 5.8.0. |
| 77 | + --> |
| 78 | + <dependency> |
| 79 | + <groupId>org.junit.jupiter</groupId> |
| 80 | + <artifactId>junit-jupiter-engine</artifactId> |
| 81 | + <version>5.8.2</version> |
| 82 | + </dependency> |
| 83 | + <dependency> |
| 84 | + <groupId>org.junit.platform</groupId> |
| 85 | + <artifactId>junit-platform-suite-engine</artifactId> |
| 86 | + <version>1.8.2</version> |
| 87 | + </dependency> |
| 88 | + </dependencies> |
| 89 | + </plugin> |
| 90 | + </plugins> |
| 91 | + </pluginManagement> |
| 92 | + </build> |
| 93 | + |
| 94 | +</project> |
0 commit comments