|
69 | 69 | <prometheus.client.version>0.16.0</prometheus.client.version> |
70 | 70 | <reflections.version>0.10.2</reflections.version> |
71 | 71 |
|
| 72 | + <!-- The `optional` tag in `dependencyManagement` is not inherited; see |
| 73 | + https://issues.apache.org/jira/browse/MNG-5227 and |
| 74 | + https://issues.apache.org/jira/browse/MNG-5632. Therefore, we specify |
| 75 | + optional dependencies here to manage them in a single location. --> |
| 76 | + <prometheus.client.optional>true</prometheus.client.optional> |
| 77 | + <com.amazonaws.aws-java-sdk-sts.optional>true</com.amazonaws.aws-java-sdk-sts.optional> |
| 78 | + <com.google.auth.google-auth-library-oauth2-http.optional>true</com.google.auth.google-auth-library-oauth2-http.optional> |
| 79 | + <org.springframework.boot.spring-boot-actuator.optional>true</org.springframework.boot.spring-boot-actuator.optional> |
| 80 | + <com.microsoft.azure.adal4j.optional>true</com.microsoft.azure.adal4j.optional> |
| 81 | + <com.fasterxml.jackson.core.jackson-annotations.optional>true</com.fasterxml.jackson.core.jackson-annotations.optional> |
| 82 | + |
72 | 83 | <e2e.skip>true</e2e.skip> |
73 | 84 |
|
74 | 85 | <gpg.keyname>48540ECBBF00A28EACCF04E720FD12AFB0C9EBA9</gpg.keyname> |
|
143 | 154 | <groupId>com.microsoft.azure</groupId> |
144 | 155 | <artifactId>adal4j</artifactId> |
145 | 156 | <version>1.6.7</version> |
146 | | - <optional>true</optional> |
| 157 | + <optional>${com.microsoft.azure.adal4j.optional}</optional> |
147 | 158 | </dependency> |
148 | 159 | <dependency> |
149 | 160 | <groupId>com.amazonaws</groupId> |
150 | 161 | <artifactId>aws-java-sdk-sts</artifactId> |
151 | 162 | <version>1.12.746</version> |
152 | | - <optional>true</optional> |
| 163 | + <optional>${com.amazonaws.aws-java-sdk-sts.optional}</optional> |
153 | 164 | </dependency> |
154 | 165 | <dependency> |
155 | 166 | <groupId>com.google.protobuf</groupId> |
|
185 | 196 | <groupId>org.springframework.boot</groupId> |
186 | 197 | <artifactId>spring-boot-actuator</artifactId> |
187 | 198 | <version>${spring.boot.version}</version> |
188 | | - <optional>true</optional> |
189 | 199 | </dependency> |
190 | 200 | <dependency> |
191 | 201 | <groupId>io.prometheus</groupId> |
192 | 202 | <artifactId>simpleclient</artifactId> |
193 | 203 | <version>${prometheus.client.version}</version> |
194 | | - <optional>true</optional> |
195 | 204 | </dependency> |
196 | 205 | <dependency> |
197 | 206 | <groupId>io.prometheus</groupId> |
198 | 207 | <artifactId>simpleclient_httpserver</artifactId> |
199 | 208 | <version>${prometheus.client.version}</version> |
200 | | - <optional>true</optional> |
201 | 209 | </dependency> |
202 | 210 | <dependency> |
203 | 211 | <groupId>com.google.code.gson</groupId> |
|
248 | 256 | <groupId>com.google.auth</groupId> |
249 | 257 | <artifactId>google-auth-library-oauth2-http</artifactId> |
250 | 258 | <version>1.23.0</version> |
251 | | - <optional>true</optional> |
| 259 | + <optional>${com.google.auth.google-auth-library-oauth2-http.optional}</optional> |
252 | 260 | </dependency> |
253 | 261 | <dependency> |
254 | 262 | <groupId>com.fasterxml.jackson.core</groupId> |
255 | 263 | <artifactId>jackson-annotations</artifactId> |
256 | 264 | <version>2.17.1</version> |
257 | | - <optional>true</optional> |
| 265 | + <optional>${com.fasterxml.jackson.core.jackson-annotations.optional}</optional> |
258 | 266 | </dependency> |
259 | 267 |
|
260 | 268 | <!-- tests --> |
|
0 commit comments