# Gradle 2.5 - MavenPublish failing with NullPointerException

**URL:** <https://discuss.gradle.org/t/gradle-2-5-mavenpublish-failing-with-nullpointerexception/10709>\
**Category:** Bugs\
**Tags:** gradle-3324, issue-acknowledged\
**Created:** [July 21, 2015, 12:03pm UTC](https://discuss.gradle.org/t/gradle-2-5-mavenpublish-failing-with-nullpointerexception/10709 "2015-07-21T12:03:52Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![klehno00](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/klehno00/32/2586_2.png) [@klehno00](https://discuss.gradle.org/u/klehno00)\
**Post date:** [July 22, 2015, 5:45pm UTC](https://discuss.gradle.org/t/gradle-2-5-mavenpublish-failing-with-nullpointerexception/10709/5 "2015-07-22T17:45:14Z")

</div>

Please see the code snippets here [https://gist.github.com/klehno00/bba2dd6bf28febbb07a7/revisions](https://gist.github.com/klehno00/bba2dd6bf28febbb07a7/revisions)

The “ear” project does not have a different publication configuration. I get the same error for any other project.  
Project directory structures usually look like:

> module  
> ±build.gradle  
> ±contract  
> ±-src  
> ±–main  
> ±----java  
> ±service  
> ±web

---

_[View the full topic](https://discuss.gradle.org/t/gradle-2-5-mavenpublish-failing-with-nullpointerexception/10709)._
