# Maven-publish plugin said to be "incompatible" with Gradle 5.0

**URL:** <https://discuss.gradle.org/t/maven-publish-plugin-said-to-be-incompatible-with-gradle-5-0/30018>\
**Category:** Help/Discuss\
**Created:** [December 30, 2018, 4:57pm UTC](https://discuss.gradle.org/t/maven-publish-plugin-said-to-be-incompatible-with-gradle-5-0/30018 "2018-12-30T16:57:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrodent](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@mrodent](https://discuss.gradle.org/u/mrodent)\
**Post date:** [December 30, 2018, 4:57pm UTC](https://discuss.gradle.org/t/maven-publish-plugin-said-to-be-incompatible-with-gradle-5-0/30018/1 "2018-12-30T16:57:15Z")

</div>

On ./gradlew build I get

> Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.  
> See [Command-Line Interface - Gradle User Manual](https://docs.gradle.org/4.8.1/userguide/command_line_interface.html#sec:command_line_warnings)

… but it also says BUILD SUCCESSFUL. I’m not sure what  
this means… NB this attempt to use “maven-publish” is related to my previous question: I’m wondering whether or how I can use a “local Maven repository” (whatever that is) to allow versions of modules (classes, etc.) from one project to be available to others as dependencies (which will also pull in their own dependencies if missing)…

---

<div class="post-metadata">

**Author:** ![staffanf](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/staffanf/32/6017_2.png) [@staffanf](https://discuss.gradle.org/u/staffanf)\
**Post date:** [January 8, 2019, 8:16am UTC](https://discuss.gradle.org/t/maven-publish-plugin-said-to-be-incompatible-with-gradle-5-0/30018/2 "2019-01-08T08:16:35Z")

</div>

It’s not maven-publish that’s incompatible. It means something in your buildscripts or a plugin did something that will not works in gradle 5.0+  
Run the build with `./gradle build -warning-mode=all` and you will get an warning message at the end of the build explaining what the actual error is.
