./gradlew clean check is giving error > Task :licenseHeaders FAILED

Hi,

I am new to plugin development.

I have created ingest-plugin project using cookiecutter for the version 7.9.0 and tried checking with ./gradle clean check. i was getting an error

Task :licenseHeaders FAILED

Unapproved licenses:

/home/piway/projects/my-plugin/ingest-projecta/src/main/java/org/elasticsearch/plugin/ingest/projecta/IngestProjectaPlugin.java
/home/piway/projects/my-plugin/ingest-projecta/src/main/java/org/elasticsearch/plugin/ingest/projecta/ProjectaProcessor.java
/home/piway/projects/my-plugin/ingest-projecta/src/test/java/org/elasticsearch/plugin/ingest/projecta/ProjectaProcessorTests.java
/home/piway/projects/my-plugin/ingest-projecta/src/yamlRestTest/java/org/elasticsearch/plugin/ingest/projecta/ProjectaRestIT.java

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':licenseHeaders'.

License header problems were found! Full details: /home/piway/projects/my-plugin/ingest-projecta/build/reports/licenseHeaders/rat.log

rat.log

Summary

Generated at: 2021-05-23T08:31:58+05:30
Notes: 0
Binaries: 0
Archives: 0
Standards: 4

Apache Licensed: 4
Generated Documents: 0

JavaDocs are generated and so license header is optional
Generated files do not required license headers

0 Unknown Licenses


Unapproved licenses:

/home/piway/projects/my-plugin/ingest-projecta/src/main/java/org/elasticsearch/plugin/ingest/projecta/IngestProjectaPlugin.java
/home/piway/projects/my-plugin/ingest-projecta/src/main/java/org/elasticsearch/plugin/ingest/projecta/ProjectaProcessor.java
/home/piway/projects/my-plugin/ingest-projecta/src/test/java/org/elasticsearch/plugin/ingest/projecta/ProjectaProcessorTests.java
/home/piway/projects/my-plugin/ingest-projecta/src/yamlRestTest/java/org/elasticsearch/plugin/ingest/projecta/ProjectaRestIT.java


Archives:


Files with Apache License headers will be marked AL
Binary files (which do not require AL headers) will be marked B
Compressed archives will be marked A
Notices, licenses etc will be marked N
!AL /home/piway/projects/my-plugin/ingest-projecta/src/main/java/org/elasticsearch/plugin/ingest/projecta/IngestProjectaPlugin.java
!AL /home/piway/projects/my-plugin/ingest-projecta/src/main/java/org/elasticsearch/plugin/ingest/projecta/ProjectaProcessor.java
!AL /home/piway/projects/my-plugin/ingest-projecta/src/test/java/org/elasticsearch/plugin/ingest/projecta/ProjectaProcessorTests.java
!AL /home/piway/projects/my-plugin/ingest-projecta/src/yamlRestTest/java/org/elasticsearch/plugin/ingest/projecta/ProjectaRestIT.java


Printing headers for files without AL header...

This is part of the build-tools suite for building custom plugin, but merely an internal helper to ensure that the Elasticsearch source files always have a license. You could customize this or disable by putting licenseHeaders.enabled = false in your gradle file.

Hope that helps!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.