<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2018 Red Hat, Inc.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  --><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      
    <modelVersion>4.0.0</modelVersion>
      
    <packaging>jar</packaging>
      
    <parent>
            
        <groupId>io.vertx</groupId>
            
        <artifactId>vertx-ext-parent</artifactId>
            
        <version>38</version>
          
    </parent>
      
    <artifactId>vertx-junit5</artifactId>
      
    <version>4.5.10</version>
      
    <name>Vert.x JUnit 5 support :: Core</name>
      
    <properties>
            
        <doc.skip>false</doc.skip>
            
        <stack.version>4.5.10</stack.version>
            
        <junit-jupiter.version>5.8.2</junit-jupiter.version>
            
        <apiguardian-api.version>1.0.0</apiguardian-api.version>
            
        <assertj-core.version>3.21.0</assertj-core.version>
            
        <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
            
        <system-lamda.version>1.2.0</system-lamda.version>
            
        <jar.manifest>${project.basedir}/src/main/resources/META-INF/MANIFEST.MF</jar.manifest>
          
    </properties>
      
    <dependencyManagement>
            
        <dependencies>
                  
            <dependency>
                        
                <groupId>io.vertx</groupId>
                        
                <artifactId>vertx-dependencies</artifactId>
                        
                <version>${stack.version}</version>
                        
                <type>pom</type>
                        
                <scope>import</scope>
                      
            </dependency>
                  
            <dependency>
                        
                <groupId>org.junit</groupId>
                        
                <artifactId>junit-bom</artifactId>
                        
                <version>${junit-jupiter.version}</version>
                        
                <type>pom</type>
                        
                <scope>import</scope>
                      
            </dependency>
                
        </dependencies>
          
    </dependencyManagement>
      
    <dependencies>
            
        <dependency>
                  
            <groupId>io.vertx</groupId>
                  
            <artifactId>vertx-codegen</artifactId>
                  
            <optional>true</optional>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.vertx</groupId>
                  
            <artifactId>vertx-docgen</artifactId>
                  
            <scope>provided</scope>
                  
            <optional>true</optional>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.vertx</groupId>
                  
            <artifactId>vertx-core</artifactId>
                
        </dependency>
            
        <dependency>
                  
            <groupId>org.junit.jupiter</groupId>
                  
            <artifactId>junit-jupiter-api</artifactId>
                  
            <scope>compile</scope>
                
        </dependency>
            
        <dependency>
                  
            <groupId>org.junit.jupiter</groupId>
                  
            <artifactId>junit-jupiter-params</artifactId>
                  
            <scope>compile</scope>
                
        </dependency>
            
        <dependency>
                  
            <groupId>org.junit.jupiter</groupId>
                  
            <artifactId>junit-jupiter-engine</artifactId>
                  
            <scope>runtime</scope>
                
        </dependency>
            
        <dependency>
                  
            <groupId>org.junit.jupiter</groupId>
                  
            <artifactId>junit-jupiter</artifactId>
                  
            <scope>test</scope>
                
        </dependency>
            
        <dependency>
                  
            <groupId>org.junit.platform</groupId>
                  
            <artifactId>junit-platform-launcher</artifactId>
                  
            <scope>test</scope>
                
        </dependency>
            
        <dependency>
                  
            <groupId>com.github.stefanbirkner</groupId>
                  
            <artifactId>system-lambda</artifactId>
                  
            <version>${system-lamda.version}</version>
                  
            <scope>test</scope>
                
        </dependency>
            
        <dependency>
                  
            <groupId>org.assertj</groupId>
                  
            <artifactId>assertj-core</artifactId>
                  
            <version>${assertj-core.version}</version>
                  
            <scope>provided</scope>
                  
            <optional>true</optional>
                
        </dependency>
          
    </dependencies>
      
    <build>
            
        <plugins>
                  
            <plugin>
                        
                <groupId>org.apache.maven.plugins</groupId>
                        
                <artifactId>maven-surefire-plugin</artifactId>
                        
                <version>${maven-surefire-plugin.version}</version>
                        
                <configuration>
                              
                    <excludedGroups>programmatic</excludedGroups>
                            
                </configuration>
                      
            </plugin>
                
        </plugins>
          
    </build>
      
    <profiles>
            
        <profile>
                  
            <id>java17-running-test-with-strong-encapsulation</id>
                  
            <activation>
                        
                <jdk>17</jdk>
                      
            </activation>
                  
            <build>
                        
                <plugins>
                              
                    <plugin>
                                    
                        <groupId>org.apache.maven.plugins</groupId>
                                    
                        <artifactId>maven-surefire-plugin</artifactId>
                                    
                        <version>${maven-surefire-plugin.version}</version>
                                    
                        <configuration>
                                          
                            <excludedGroups>programmatic</excludedGroups>
                                          
                            <argLine>--add-opens=java.base/java.util=ALL-UNNAMED</argLine>
                                        
                        </configuration>
                                  
                    </plugin>
                            
                </plugins>
                      
            </build>
                
        </profile>
          
    </profiles>
    
</project>
