|
38 | 38 | ~ OSGi and JPMS options
|
39 | 39 | -->
|
40 | 40 | <bnd-module-name>org.apache.logging.log4j.spring.cloud.config.client</bnd-module-name>
|
| 41 | + <bnd-extra-packages-options> |
| 42 | + <!-- Used only for annotations --> |
| 43 | + org.springframework.boot.autoconfigure;resolution:=optional |
| 44 | + </bnd-extra-packages-options> |
41 | 45 | <bnd-extra-module-options>
|
| 46 | + <!-- Optional dependencies should not be transitive --> |
| 47 | + spring.boot.autoconfigure;transitive=false, |
42 | 48 | <!-- Filebased module names: MUST be static -->
|
43 | 49 | spring.cloud.context;substitute="spring-cloud-context";static=true;transitive=false
|
44 | 50 | </bnd-extra-module-options>
|
45 | 51 | <Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
|
46 |
| - |
47 |
| - <!-- dependency versions --> |
48 |
| - <spring-boot.version>3.2.1</spring-boot.version> |
49 |
| - <spring-cloud.version>2022.0.4</spring-cloud.version> |
50 |
| - |
51 | 52 | </properties>
|
52 | 53 |
|
53 |
| - <dependencyManagement> |
54 |
| - <dependencies> |
55 |
| - |
56 |
| - <dependency> |
57 |
| - <groupId>org.springframework.boot</groupId> |
58 |
| - <artifactId>spring-boot-dependencies</artifactId> |
59 |
| - <version>${spring-boot.version}</version> |
60 |
| - <type>pom</type> |
61 |
| - <scope>import</scope> |
62 |
| - </dependency> |
63 |
| - |
64 |
| - <dependency> |
65 |
| - <groupId>org.springframework.cloud</groupId> |
66 |
| - <artifactId>spring-cloud-dependencies</artifactId> |
67 |
| - <version>${spring-cloud.version}</version> |
68 |
| - <type>pom</type> |
69 |
| - <scope>import</scope> |
70 |
| - </dependency> |
71 |
| - |
72 |
| - <dependency> |
73 |
| - <groupId>org.springframework.boot</groupId> |
74 |
| - <artifactId>spring-boot-starter-test</artifactId> |
75 |
| - <version>${spring-boot.version}</version> |
76 |
| - <exclusions> |
77 |
| - <exclusion> |
78 |
| - <groupId>org.springframework.boot</groupId> |
79 |
| - <artifactId>spring-boot-starter-logging</artifactId> |
80 |
| - </exclusion> |
81 |
| - </exclusions> |
82 |
| - </dependency> |
83 |
| - |
84 |
| - </dependencies> |
85 |
| - </dependencyManagement> |
86 |
| - |
87 | 54 | <dependencies>
|
88 | 55 |
|
89 | 56 | <dependency>
|
90 |
| - <groupId>org.apache.logging.log4j</groupId> |
91 |
| - <artifactId>log4j-core</artifactId> |
| 57 | + <groupId>org.springframework.boot</groupId> |
| 58 | + <artifactId>spring-boot-autoconfigure</artifactId> |
| 59 | + <scope>provided</scope> |
92 | 60 | </dependency>
|
93 | 61 |
|
94 | 62 | <dependency>
|
95 |
| - <groupId>org.springframework.cloud</groupId> |
96 |
| - <artifactId>spring-cloud-config-client</artifactId> |
97 |
| - <exclusions> |
98 |
| - <exclusion> |
99 |
| - <groupId>org.springframework</groupId> |
100 |
| - <artifactId>spring-jcl</artifactId> |
101 |
| - </exclusion> |
102 |
| - </exclusions> |
| 63 | + <groupId>org.apache.logging.log4j</groupId> |
| 64 | + <artifactId>log4j-core</artifactId> |
103 | 65 | </dependency>
|
104 | 66 |
|
105 | 67 | <dependency>
|
106 |
| - <groupId>org.springframework.cloud</groupId> |
107 |
| - <artifactId>spring-cloud-starter-bootstrap</artifactId> |
| 68 | + <groupId>org.springframework</groupId> |
| 69 | + <artifactId>spring-context</artifactId> |
108 | 70 | </dependency>
|
109 | 71 |
|
110 | 72 | <dependency>
|
111 |
| - <groupId>commons-logging</groupId> |
112 |
| - <artifactId>commons-logging</artifactId> |
113 |
| - <scope>runtime</scope> |
| 73 | + <groupId>org.springframework.cloud</groupId> |
| 74 | + <artifactId>spring-cloud-context</artifactId> |
114 | 75 | </dependency>
|
115 | 76 |
|
116 | 77 | <dependency>
|
|
126 | 87 | </dependency>
|
127 | 88 |
|
128 | 89 | <dependency>
|
129 |
| - <groupId>org.springframework.boot</groupId> |
130 |
| - <artifactId>spring-boot-starter-test</artifactId> |
| 90 | + <groupId>org.springframework</groupId> |
| 91 | + <artifactId>spring-test</artifactId> |
131 | 92 | <scope>test</scope>
|
132 |
| - <exclusions> |
133 |
| - <exclusion> |
134 |
| - <groupId>org.springframework</groupId> |
135 |
| - <artifactId>spring-jcl</artifactId> |
136 |
| - </exclusion> |
137 |
| - </exclusions> |
138 | 93 | </dependency>
|
139 | 94 |
|
140 | 95 | <dependency>
|
141 | 96 | <groupId>org.springframework.boot</groupId>
|
142 |
| - <artifactId>spring-boot-starter-log4j2</artifactId> |
| 97 | + <artifactId>spring-boot-test</artifactId> |
143 | 98 | <scope>test</scope>
|
144 |
| - <exclusions> |
145 |
| - <exclusion> |
146 |
| - <groupId>org.springframework</groupId> |
147 |
| - <artifactId>spring-jcl</artifactId> |
148 |
| - </exclusion> |
149 |
| - </exclusions> |
150 | 99 | </dependency>
|
151 | 100 |
|
152 | 101 | </dependencies>
|
153 | 102 |
|
| 103 | + <build> |
| 104 | + <plugins> |
| 105 | + <!-- |
| 106 | + ~ Unban Spring JCL, so we don't need to exclude it. |
| 107 | + --> |
| 108 | + <plugin> |
| 109 | + <groupId>org.apache.maven.plugins</groupId> |
| 110 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 111 | + <executions> |
| 112 | + <execution> |
| 113 | + <id>ban-logging-dependencies</id> |
| 114 | + <configuration> |
| 115 | + <rules> |
| 116 | + <bannedDependencies> |
| 117 | + <includes> |
| 118 | + <include>org.springframework:spring-jcl</include> |
| 119 | + </includes> |
| 120 | + </bannedDependencies> |
| 121 | + </rules> |
| 122 | + </configuration> |
| 123 | + </execution> |
| 124 | + </executions> |
| 125 | + </plugin> |
| 126 | + </plugins> |
| 127 | + </build> |
154 | 128 | </project>
|
0 commit comments