* Java 3590 (#11367) * JAVA-3590: updating junit-jupiter dependency in the main pom.xml * resolving unnecessary mockito stubbings exception * adding junit-bom in dependency management * fixing tests which were not getting discovered * Revert "fixing tests which were not getting discovered" This reverts commit 2e9ed8df42eb96f7e0929167aabbc2ddd374a263. * fixing tests in ninja, open-liberty and spring-ejb * removing junit4 dependency and replacing it with junit-vintage-engine * removing junit4 dependency and replacing it with junit-vintage-engine in testing-modules, maven-modules and aws-lambda * removing junit dependency and replacing it with junit-vintage-engine * removing junit and replacing it with junit-vintage-engine * fixing tests that were not getting discovered due to old version of junit:junit * updated failsafe plugin configuration to skip integration tests in blade * fixing tests that were not getting discovered due to old version of junit:junit * fixing tests in libraries and libraries-2 modules Co-authored-by: chaos2418 <> * Java 3590 - fixing integration tests in restx and spring-5-webflux (#11382) * JAVA-3590: updating junit-jupiter dependency in the main pom.xml * resolving unnecessary mockito stubbings exception * adding junit-bom in dependency management * fixing tests which were not getting discovered * Revert "fixing tests which were not getting discovered" This reverts commit 2e9ed8df42eb96f7e0929167aabbc2ddd374a263. * fixing tests in ninja, open-liberty and spring-ejb * removing junit4 dependency and replacing it with junit-vintage-engine * removing junit4 dependency and replacing it with junit-vintage-engine in testing-modules, maven-modules and aws-lambda * removing junit dependency and replacing it with junit-vintage-engine * removing junit and replacing it with junit-vintage-engine * fixing tests that were not getting discovered due to old version of junit:junit * updated failsafe plugin configuration to skip integration tests in blade * fixing tests that were not getting discovered due to old version of junit:junit * fixing tests in libraries and libraries-2 modules * fixing integration tests in restx and spring-5-webflux Co-authored-by: chaos2418 <> Co-authored-by: chaos2418 <92030908+chaos2418@users.noreply.github.com>
		
			
				
	
	
		
			107 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			107 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <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>
 | |
|     <artifactId>spring-boot-logging-log4j2</artifactId>
 | |
|     <name>spring-boot-logging-log4j2</name>
 | |
|     <packaging>jar</packaging>
 | |
|     <description>Demo project for Spring Boot Logging with Log4J2</description>
 | |
| 
 | |
|     <!-- this needs to use the boot parent directly in order to not inherit logback dependencies -->
 | |
|     <parent>
 | |
|         <groupId>org.springframework.boot</groupId>
 | |
|         <artifactId>spring-boot-starter-parent</artifactId>
 | |
|         <version>2.2.2.RELEASE</version>
 | |
|         <relativePath />
 | |
|     </parent>
 | |
| 
 | |
|     <dependencyManagement>
 | |
|         <dependencies>
 | |
|             <!-- for junit5 to successfully be able to discover junit4 tests, we need 4.12+ version of junit:junit in the classpath. hence forcing the
 | |
|             latest 4.13.2 available version for junit5 compatibility -->
 | |
|             <dependency>
 | |
|                 <groupId>junit</groupId>
 | |
|                 <artifactId>junit</artifactId>
 | |
|                 <version>${junit.version}</version>
 | |
|             </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>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter-web</artifactId>
 | |
|             <exclusions>
 | |
|                 <exclusion>
 | |
|                     <groupId>org.springframework.boot</groupId>
 | |
|                     <artifactId>spring-boot-starter-logging</artifactId>
 | |
|                 </exclusion>
 | |
|             </exclusions>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter-test</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter-log4j2</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.projectlombok</groupId>
 | |
|             <artifactId>lombok</artifactId>
 | |
|             <version>${lombok.version}</version>
 | |
|             <scope>provided</scope>
 | |
|         </dependency>
 | |
|         <!-- for Graylog demo -->
 | |
|         <dependency>
 | |
|             <!-- forcing spring boot 1.x sing log4j was dropped in spring boot 1.4 and beyond -->
 | |
|             <groupId>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter-log4j</artifactId>
 | |
|             <version>${spring-boot-starter-log4j.version}</version>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.graylog2</groupId>
 | |
|             <artifactId>gelfj</artifactId>
 | |
|             <version>${gelfj.version}</version>
 | |
|             <scope>compile</scope>
 | |
|         </dependency>
 | |
|     </dependencies>
 | |
| 
 | |
|     <build>
 | |
|         <plugins>
 | |
|             <plugin>
 | |
|                 <groupId>org.apache.maven.plugins</groupId>
 | |
|                 <artifactId>maven-surefire-plugin</artifactId>
 | |
|                 <configuration>
 | |
|                     <forkCount>3</forkCount>
 | |
|                     <reuseForks>true</reuseForks>
 | |
|                     <excludes>
 | |
|                         <exclude>**/*IntegrationTest.java</exclude>
 | |
|                         <exclude>**/*IntTest.java</exclude>
 | |
|                         <exclude>**/*ManualTest.java</exclude>
 | |
|                         <exclude>**/*LiveTest.java</exclude>
 | |
|                     </excludes>
 | |
|                 </configuration>
 | |
|             </plugin>
 | |
|         </plugins>
 | |
|     </build>
 | |
| 
 | |
|     <properties>
 | |
|         <start-class>com.baeldung.springbootlogging.SpringBootLoggingApplication</start-class>
 | |
|         <spring-boot-starter-log4j.version>1.3.8.RELEASE</spring-boot-starter-log4j.version>
 | |
|         <gelfj.version>1.1.16</gelfj.version>
 | |
|         <lombok.version>1.18.4</lombok.version>
 | |
|         <!-- used only in dependency management to force this version, not included as a direct dependency -->
 | |
|         <junit.version>4.13.2</junit.version>
 | |
|         <junit-jupiter.version>5.8.1</junit-jupiter.version>
 | |
|     </properties>
 | |
| 
 | |
| </project> |