|
3 | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
4 | 4 | <modelVersion>4.0.0</modelVersion>
|
5 | 5 | <parent>
|
6 |
| - <groupId>com.baeldung</groupId> |
7 |
| - <artifactId>logging-modules</artifactId> |
8 |
| - <version>1.0.0-SNAPSHOT</version> |
| 6 | + <groupId>org.springframework.boot</groupId> |
| 7 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 8 | + <version>3.3.4</version> |
| 9 | + <relativePath/> |
9 | 10 | </parent>
|
10 |
| - |
11 | 11 | <groupId>com.splunk</groupId>
|
12 | 12 | <artifactId>log4j</artifactId>
|
13 | 13 | <version>0.0.1-SNAPSHOT</version>
|
14 | 14 | <name>log4j</name>
|
15 | 15 | <description>Demo project for Splunk with Spring Boot</description>
|
16 |
| - |
17 | 16 | <properties>
|
18 | 17 | <java.version>17</java.version>
|
19 | 18 | <splunk-logging.version>1.8.0</splunk-logging.version>
|
20 |
| - <spring-boot.version>3.3.4</spring-boot.version> |
21 |
| - <maven-compiler.version>3.8.1</maven-compiler.version> |
22 | 19 | </properties>
|
23 | 20 |
|
24 | 21 | <repositories>
|
|
38 | 35 | <dependency>
|
39 | 36 | <groupId>org.springframework.boot</groupId>
|
40 | 37 | <artifactId>spring-boot-starter-web</artifactId>
|
41 |
| - <version>${spring-boot.version}</version> |
| 38 | + <exclusions> |
| 39 | + <exclusion> |
| 40 | + <groupId>org.springframework.boot</groupId> |
| 41 | + <artifactId>spring-boot-starter-logging</artifactId> |
| 42 | + </exclusion> |
| 43 | + </exclusions> |
42 | 44 | </dependency>
|
43 | 45 | <dependency>
|
44 | 46 | <groupId>org.springframework.boot</groupId>
|
45 | 47 | <artifactId>spring-boot-starter-test</artifactId>
|
46 |
| - <version>${spring-boot.version}</version> |
47 | 48 | <scope>test</scope>
|
| 49 | + <exclusions> |
| 50 | + <exclusion> |
| 51 | + <groupId>org.springframework.boot</groupId> |
| 52 | + <artifactId>spring-boot-starter-logging</artifactId> |
| 53 | + </exclusion> |
| 54 | + </exclusions> |
48 | 55 | </dependency>
|
49 | 56 | <dependency>
|
50 | 57 | <groupId>com.splunk.logging</groupId>
|
51 | 58 | <artifactId>splunk-library-javalogging</artifactId>
|
52 | 59 | <version>${splunk-logging.version}</version>
|
53 | 60 | </dependency>
|
| 61 | + <dependency> |
| 62 | + <groupId>org.springframework.boot</groupId> |
| 63 | + <artifactId>spring-boot-starter-log4j2</artifactId> |
| 64 | + </dependency> |
54 | 65 | </dependencies>
|
55 | 66 |
|
56 | 67 | <build>
|
|
59 | 70 | <groupId>org.springframework.boot</groupId>
|
60 | 71 | <artifactId>spring-boot-maven-plugin</artifactId>
|
61 | 72 | </plugin>
|
62 |
| - <plugin> |
63 |
| - <groupId>org.apache.maven.plugins</groupId> |
64 |
| - <artifactId>maven-compiler-plugin</artifactId> |
65 |
| - <version>3.13.0</version> |
66 |
| - <configuration> |
67 |
| - <source>${java.version}</source> |
68 |
| - <target>${java.version}</target> |
69 |
| - </configuration> |
70 |
| - </plugin> |
71 | 73 | </plugins>
|
72 | 74 | </build>
|
73 | 75 |
|
|
0 commit comments