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 @@ -378,6 +378,37 @@ under the License.
378
378
</dependencies >
379
379
</plugin >
380
380
381
+ <plugin >
382
+ <groupId >org.apache.maven.plugins</groupId >
383
+ <artifactId >maven-enforcer-plugin</artifactId >
384
+ <executions >
385
+ <execution >
386
+ <id >ban-elastic-dependencies</id >
387
+ <goals >
388
+ <goal >enforce</goal >
389
+ </goals >
390
+ <configuration >
391
+ <rules >
392
+ <!--
393
+ Exclude all Elastic dependencies by default. If there is any Elastic dependency needed,
394
+ ensure its usage is compatible with Apache licence and then add it to includes.
395
+ -->
396
+ <bannedDependencies >
397
+ <excludes >
398
+ <exclude >org.elasticsearch.*:*</exclude >
399
+ </excludes >
400
+ <includes >
401
+ <include >org.elasticsearch.plugin:x-pack-sql-jdbc:*:*:provided</include >
402
+ <include >org.elasticsearch.client:elasticsearch-rest-client:*:*:test</include >
403
+ </includes >
404
+ <message >Elastic x-pack dependencies are not allowed to be bundled due to licensing issues.</message >
405
+ </bannedDependencies >
406
+ </rules >
407
+ </configuration >
408
+ </execution >
409
+ </executions >
410
+ </plugin >
411
+
381
412
<plugin >
382
413
<groupId >org.apache.maven.plugins</groupId >
383
414
<artifactId >maven-jar-plugin</artifactId >
@@ -412,11 +443,6 @@ under the License.
412
443
<artifactId >maven-surefire-plugin</artifactId >
413
444
</plugin >
414
445
415
- <plugin >
416
- <groupId >org.apache.maven.plugins</groupId >
417
- <artifactId >maven-enforcer-plugin</artifactId >
418
- </plugin >
419
-
420
446
<plugin >
421
447
<groupId >org.apache.maven.plugins</groupId >
422
448
<artifactId >maven-shade-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments