Skip to content

Commit b87fb0b

Browse files
authored
Merge pull request #3627 from Babak-abd/babak-optional-3rdParty-ignored
optional 3rd party ignored (issue #3596)
2 parents e9e992a + 3601df9 commit b87fb0b

File tree

5 files changed

+31
-10
lines changed

5 files changed

+31
-10
lines changed

extended/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
<artifactId>client-java-api-fluent</artifactId>
3535
<version>${project.version}</version>
3636
</dependency>
37+
<dependency>
38+
<groupId>io.prometheus</groupId>
39+
<artifactId>simpleclient</artifactId>
40+
<optional>${prometheus.client.optional}</optional>
41+
</dependency>
3742
<dependency>
3843
<groupId>org.apache.commons</groupId>
3944
<artifactId>commons-lang3</artifactId>

fluent-gen/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>io.kubernetes</groupId>
1212
<artifactId>client-java-parent</artifactId>
13-
<version>21.0.0-legacy-SNAPSHOT</version>
13+
<version>21.0.1-legacy-SNAPSHOT</version>
1414
<relativePath>../pom.xml</relativePath>
1515
</parent>
1616

pom.xml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@
6969
<prometheus.client.version>0.16.0</prometheus.client.version>
7070
<reflections.version>0.10.2</reflections.version>
7171

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+
7283
<e2e.skip>true</e2e.skip>
7384

7485
<gpg.keyname>48540ECBBF00A28EACCF04E720FD12AFB0C9EBA9</gpg.keyname>
@@ -143,13 +154,13 @@
143154
<groupId>com.microsoft.azure</groupId>
144155
<artifactId>adal4j</artifactId>
145156
<version>1.6.7</version>
146-
<optional>true</optional>
157+
<optional>${com.microsoft.azure.adal4j.optional}</optional>
147158
</dependency>
148159
<dependency>
149160
<groupId>com.amazonaws</groupId>
150161
<artifactId>aws-java-sdk-sts</artifactId>
151162
<version>1.12.746</version>
152-
<optional>true</optional>
163+
<optional>${com.amazonaws.aws-java-sdk-sts.optional}</optional>
153164
</dependency>
154165
<dependency>
155166
<groupId>com.google.protobuf</groupId>
@@ -185,19 +196,16 @@
185196
<groupId>org.springframework.boot</groupId>
186197
<artifactId>spring-boot-actuator</artifactId>
187198
<version>${spring.boot.version}</version>
188-
<optional>true</optional>
189199
</dependency>
190200
<dependency>
191201
<groupId>io.prometheus</groupId>
192202
<artifactId>simpleclient</artifactId>
193203
<version>${prometheus.client.version}</version>
194-
<optional>true</optional>
195204
</dependency>
196205
<dependency>
197206
<groupId>io.prometheus</groupId>
198207
<artifactId>simpleclient_httpserver</artifactId>
199208
<version>${prometheus.client.version}</version>
200-
<optional>true</optional>
201209
</dependency>
202210
<dependency>
203211
<groupId>com.google.code.gson</groupId>
@@ -248,13 +256,13 @@
248256
<groupId>com.google.auth</groupId>
249257
<artifactId>google-auth-library-oauth2-http</artifactId>
250258
<version>1.23.0</version>
251-
<optional>true</optional>
259+
<optional>${com.google.auth.google-auth-library-oauth2-http.optional}</optional>
252260
</dependency>
253261
<dependency>
254262
<groupId>com.fasterxml.jackson.core</groupId>
255263
<artifactId>jackson-annotations</artifactId>
256264
<version>2.17.1</version>
257-
<optional>true</optional>
265+
<optional>${com.fasterxml.jackson.core.jackson-annotations.optional}</optional>
258266
</dependency>
259267

260268
<!-- tests -->

spring/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
<artifactId>client-java-extended</artifactId>
2727
<version>${project.version}</version>
2828
</dependency>
29-
29+
<dependency>
30+
<groupId>io.prometheus</groupId>
31+
<artifactId>simpleclient</artifactId>
32+
<optional>${prometheus.client.optional}</optional>
33+
</dependency>
3034
<dependency>
3135
<groupId>org.springframework.boot</groupId>
3236
<artifactId>spring-boot</artifactId>
@@ -38,6 +42,7 @@
3842
<dependency>
3943
<groupId>org.springframework.boot</groupId>
4044
<artifactId>spring-boot-actuator</artifactId>
45+
<optional>${org.springframework.boot.spring-boot-actuator.optional}</optional>
4146
</dependency>
4247
<dependency>
4348
<groupId>com.github.ben-manes.caffeine</groupId>

util/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
<dependency>
1616
<groupId>io.prometheus</groupId>
1717
<artifactId>simpleclient</artifactId>
18+
<optional>${prometheus.client.optional}</optional>
1819
</dependency>
1920
<dependency>
2021
<groupId>io.prometheus</groupId>
2122
<artifactId>simpleclient_httpserver</artifactId>
23+
<optional>${prometheus.client.optional}</optional>
2224
</dependency>
2325
<dependency>
2426
<groupId>io.kubernetes</groupId>
@@ -65,6 +67,7 @@
6567
<dependency>
6668
<groupId>com.amazonaws</groupId>
6769
<artifactId>aws-java-sdk-sts</artifactId>
70+
<optional>${com.amazonaws.aws-java-sdk-sts.optional}</optional>
6871
</dependency>
6972
<dependency>
7073
<groupId>ch.qos.logback</groupId>
@@ -86,7 +89,7 @@
8689
<dependency>
8790
<groupId>com.google.auth</groupId>
8891
<artifactId>google-auth-library-oauth2-http</artifactId>
89-
<optional>true</optional>
92+
<optional>${com.google.auth.google-auth-library-oauth2-http.optional}</optional>
9093
</dependency>
9194
<!-- test dependencies -->
9295
<dependency>

0 commit comments

Comments
 (0)