Skip to content

Commit 3f0d4c4

Browse files
committed
build: exclude react-related dependencies.
We don't expose and use them, also Maven always tries to download them that slow down any mvn command. Fix #1241
1 parent ae77fdc commit 3f0d4c4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pom.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,49 @@
308308
<artifactId>react</artifactId>
309309
<version>${react.version}</version>
310310
<scope>runtime</scope>
311+
<exclusions>
312+
<exclusion>
313+
<groupId>org.webjars.npm</groupId>
314+
<artifactId>loose-envify</artifactId>
315+
</exclusion>
316+
<exclusion>
317+
<groupId>org.webjars.npm</groupId>
318+
<artifactId>object-assign</artifactId>
319+
</exclusion>
320+
<exclusion>
321+
<groupId>org.webjars.npm</groupId>
322+
<artifactId>prop-types</artifactId>
323+
</exclusion>
324+
<exclusion>
325+
<groupId>org.webjars.npm</groupId>
326+
<artifactId>scheduler</artifactId>
327+
</exclusion>
328+
</exclusions>
311329
</dependency>
312330

313331
<dependency>
314332
<groupId>org.webjars.npm</groupId>
315333
<artifactId>react-dom</artifactId>
316334
<version>${react.version}</version>
317335
<scope>runtime</scope>
336+
<exclusions>
337+
<exclusion>
338+
<groupId>org.webjars.npm</groupId>
339+
<artifactId>loose-envify</artifactId>
340+
</exclusion>
341+
<exclusion>
342+
<groupId>org.webjars.npm</groupId>
343+
<artifactId>object-assign</artifactId>
344+
</exclusion>
345+
<exclusion>
346+
<groupId>org.webjars.npm</groupId>
347+
<artifactId>prop-types</artifactId>
348+
</exclusion>
349+
<exclusion>
350+
<groupId>org.webjars.npm</groupId>
351+
<artifactId>scheduler</artifactId>
352+
</exclusion>
353+
</exclusions>
318354
</dependency>
319355

320356
<!-- For mocking of non-interface types -->

0 commit comments

Comments
 (0)