# Plugin build error for es version 5.6, can't find license and notice file

**URL:** <https://discuss.elastic.co/t/plugin-build-error-for-es-version-5-6-cant-find-license-and-notice-file/210355>\
**Category:** Elasticsearch\
**Created:** [December 3, 2019, 1:33pm UTC](https://discuss.elastic.co/t/plugin-build-error-for-es-version-5-6-cant-find-license-and-notice-file/210355 "2019-12-03T13:33:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ethan-Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethan-zhang/32/54812_2.png) [@Ethan-Zhang](https://discuss.elastic.co/u/Ethan-Zhang)\
**Post date:** [December 3, 2019, 1:33pm UTC](https://discuss.elastic.co/t/plugin-build-error-for-es-version-5-6-cant-find-license-and-notice-file/210355/1 "2019-12-03T13:33:10Z")

</div>

```auto
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
org.gradle.api.GradleException: Must specify license and notice file for project :plugin
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
	at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)

```

build my own plugin have error when using es version 5.6, But if switch to version 6.x or 7.x, everything will be ok.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/e/dea2a21e62f394ee8faaac19803eba2988a32fd3.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 31, 2019, 1:33pm UTC](https://discuss.elastic.co/t/plugin-build-error-for-es-version-5-6-cant-find-license-and-notice-file/210355/2 "2019-12-31T13:33:15Z")

</div>

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