# Maven-publish scopes runtime dependencies as compile

**URL:** <https://discuss.gradle.org/t/maven-publish-scopes-runtime-dependencies-as-compile/30796>\
**Category:** Help/Discuss\
**Tags:** plugins\
**Created:** [March 2, 2019, 1:47am UTC](https://discuss.gradle.org/t/maven-publish-scopes-runtime-dependencies-as-compile/30796 "2019-03-02T01:47:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tekumara](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/tekumara/32/7531_2.png) [@tekumara](https://discuss.gradle.org/u/tekumara)\
**Post date:** [March 2, 2019, 1:47am UTC](https://discuss.gradle.org/t/maven-publish-scopes-runtime-dependencies-as-compile/30796/1 "2019-03-02T01:47:40Z")

</div>

Hi there,

I’m using gradle 5.2.1 and have a build.gradle with runtime dependencies. When published, I was surprised to see them scoped as compile in the generated pom.xml. Is this behaviour expected? Is there a way to publish runtime dependencies with the runtime maven scope?

---

<div class="post-metadata">

**Author:** ![tekumara](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/tekumara/32/7531_2.png) [@tekumara](https://discuss.gradle.org/u/tekumara)\
**Post date:** [April 21, 2019, 3:14am UTC](https://discuss.gradle.org/t/maven-publish-scopes-runtime-dependencies-as-compile/30796/2 "2019-04-21T03:14:45Z")

</div>

For now I have just removed the runtime dependencies altogether, as it is a library anyway.
