File tree Expand file tree Collapse file tree 1 file changed +31
-5
lines changed Expand file tree Collapse file tree 1 file changed +31
-5
lines changed Original file line number Diff line number Diff line change @@ -366,6 +366,37 @@ under the License.
366
366
</dependencies >
367
367
</plugin >
368
368
369
+ <plugin >
370
+ <groupId >org.apache.maven.plugins</groupId >
371
+ <artifactId >maven-enforcer-plugin</artifactId >
372
+ <executions >
373
+ <execution >
374
+ <id >ban-elastic-dependencies</id >
375
+ <goals >
376
+ <goal >enforce</goal >
377
+ </goals >
378
+ <configuration >
379
+ <rules >
380
+ <!--
381
+ Exclude all Elastic dependencies by default. If there is any Elastic dependency needed,
382
+ ensure its usage is compatible with Apache licence and then add it to includes.
383
+ -->
384
+ <bannedDependencies >
385
+ <excludes >
386
+ <exclude >org.elasticsearch.*:*</exclude >
387
+ </excludes >
388
+ <includes >
389
+ <include >org.elasticsearch.plugin:x-pack-sql-jdbc:*:*:provided</include >
390
+ <include >org.elasticsearch.client:elasticsearch-rest-client:*:*:test</include >
391
+ </includes >
392
+ <message >Elastic x-pack dependencies are not allowed to be bundled due to licensing issues.</message >
393
+ </bannedDependencies >
394
+ </rules >
395
+ </configuration >
396
+ </execution >
397
+ </executions >
398
+ </plugin >
399
+
369
400
<plugin >
370
401
<groupId >org.apache.maven.plugins</groupId >
371
402
<artifactId >maven-jar-plugin</artifactId >
@@ -400,11 +431,6 @@ under the License.
400
431
<artifactId >maven-surefire-plugin</artifactId >
401
432
</plugin >
402
433
403
- <plugin >
404
- <groupId >org.apache.maven.plugins</groupId >
405
- <artifactId >maven-enforcer-plugin</artifactId >
406
- </plugin >
407
-
408
434
<plugin >
409
435
<groupId >org.apache.maven.plugins</groupId >
410
436
<artifactId >maven-shade-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments