|
33 | 33 | <description>Apache Log4j Spring Cloud Config Client Support</description>
|
34 | 34 |
|
35 | 35 | <properties>
|
| 36 | + <!-- Dependency version --> |
| 37 | + <spring-boot.version>3.2.1</spring-boot.version> |
| 38 | + <spring-cloud.version>4.1.0</spring-cloud.version> |
| 39 | + <spring-framework.version>6.1.2</spring-framework.version> |
36 | 40 |
|
37 | 41 | <!--
|
38 | 42 | ~ OSGi and JPMS options
|
|
51 | 55 | <Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
|
52 | 56 | </properties>
|
53 | 57 |
|
| 58 | + <dependencyManagement> |
| 59 | + <dependencies> |
| 60 | + |
| 61 | + <dependency> |
| 62 | + <groupId>org.springframework</groupId> |
| 63 | + <artifactId>spring-framework-bom</artifactId> |
| 64 | + <version>${spring-framework.version}</version> |
| 65 | + <type>pom</type> |
| 66 | + <scope>import</scope> |
| 67 | + </dependency> |
| 68 | + |
| 69 | + <!-- We exclude external logging deps to comply with `ban-logging-dependencies` --> |
| 70 | + <dependency> |
| 71 | + <groupId>org.springframework</groupId> |
| 72 | + <artifactId>spring-core</artifactId> |
| 73 | + <version>${spring-framework.version}</version> |
| 74 | + <exclusions> |
| 75 | + <exclusion> |
| 76 | + <groupId>org.springframework</groupId> |
| 77 | + <artifactId>spring-jcl</artifactId> |
| 78 | + </exclusion> |
| 79 | + </exclusions> |
| 80 | + </dependency> |
| 81 | + |
| 82 | + </dependencies> |
| 83 | + </dependencyManagement> |
| 84 | + |
54 | 85 | <dependencies>
|
55 | 86 |
|
56 | 87 | <dependency>
|
57 | 88 | <groupId>org.springframework.boot</groupId>
|
58 | 89 | <artifactId>spring-boot-autoconfigure</artifactId>
|
| 90 | + <version>${spring-boot.version}</version> |
59 | 91 | <scope>provided</scope>
|
60 | 92 | </dependency>
|
61 | 93 |
|
|
77 | 109 | <dependency>
|
78 | 110 | <groupId>org.springframework.cloud</groupId>
|
79 | 111 | <artifactId>spring-cloud-context</artifactId>
|
| 112 | + <version>${spring-cloud.version}</version> |
80 | 113 | </dependency>
|
81 | 114 |
|
82 | 115 | <dependency>
|
|
85 | 118 | <scope>test</scope>
|
86 | 119 | </dependency>
|
87 | 120 |
|
| 121 | + <!-- Spring requires an implementation of `commons-logging` and we excluded `spring-jcl` above --> |
88 | 122 | <dependency>
|
89 | 123 | <groupId>org.apache.logging.log4j</groupId>
|
90 | 124 | <artifactId>log4j-jcl</artifactId>
|
|
100 | 134 | <dependency>
|
101 | 135 | <groupId>org.springframework.boot</groupId>
|
102 | 136 | <artifactId>spring-boot-starter-test</artifactId>
|
| 137 | + <version>${spring-boot.version}</version> |
| 138 | + <scope>test</scope> |
| 139 | + <exclusions> |
| 140 | + <exclusion> |
| 141 | + <groupId>org.springframework.boot</groupId> |
| 142 | + <artifactId>spring-boot-starter-logging</artifactId> |
| 143 | + </exclusion> |
| 144 | + </exclusions> |
| 145 | + </dependency> |
| 146 | + |
| 147 | + <!-- Spring requires bridges from all logging APIs and we excluded `spring-boot-starter-logging` above --> |
| 148 | + <dependency> |
| 149 | + <groupId>org.springframework.boot</groupId> |
| 150 | + <artifactId>spring-boot-starter-log4j2</artifactId> |
| 151 | + <version>${spring-boot.version}</version> |
103 | 152 | <scope>test</scope>
|
104 | 153 | </dependency>
|
105 | 154 |
|
|
0 commit comments