# Strange problem of Gradle compare with Maven

**URL:** <https://discuss.gradle.org/t/strange-problem-of-gradle-compare-with-maven/22807>\
**Category:** Help/Discuss\
**Created:** [May 30, 2017, 11:57am UTC](https://discuss.gradle.org/t/strange-problem-of-gradle-compare-with-maven/22807 "2017-05-30T11:57:39Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Lance](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/lance/32/787_2.png) [@Lance](https://discuss.gradle.org/u/Lance)\
**Post date:** [May 31, 2017, 9:38pm UTC](https://discuss.gradle.org/t/strange-problem-of-gradle-compare-with-maven/22807/21 "2017-05-31T21:38:47Z")

</div>

Here’s a solution that should work. I just wrote a plugin that uses Aether to resolve transitive dependencies instead of Gradle. Once resolved in Aether, the dependencies are added to a configuration in the gradle model with `transitive=false`

1. Checkout the code from [https://github.com/uklance/gradle-aether](https://github.com/uklance/gradle-aether)
2. cd into the `gradle-aether-sample` directory
3. run `gradle dependencies --configuration compile`
4. Notice `io.undertow:undertow-servlet:1.4.11.Final` in the dependency list

Usage

```gradle
apply plugin: com.lazan.gradle.aether.GradleAetherPlugin

aether {
	repositories {
		mavenCentral()
	}
	dependencies {
		compile 'org.wildfly.swarm:undertow:2017.5.0'
	}
}

```

Feel free to clone & tweak the plugin… pull requests welcomed

---

<div class="post-metadata">

**Author:** ![Seto](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/seto/32/5486_2.png) [@Seto](https://discuss.gradle.org/u/Seto)\
**Post date:** [June 3, 2017, 11:42am UTC](https://discuss.gradle.org/t/strange-problem-of-gradle-compare-with-maven/22807/22 "2017-06-03T11:42:05Z")

</div>

I still can’t get your plugin working with “io.spring.dependency-management”. I wrote a new plugin for it only to retrieve the module version from aether. And it doesn’t resolve the dependencies but only collect. And it’s much faster than your method. It will solve transitive dependencies only.

> **[SetoKaiba/aether-gradle-plugin](https://github.com/SetoKaiba/aether-gradle-plugin)**
>
> Contribute to aether-gradle-plugin development by creating an account on GitHub.

  
Here’s the plugin that I wrote. Without the need to define any extension. Just apply it. And it will use Aether to resolve transitive dependencies instead of Gradle.  
No need to modify anything. And it’s working with “io.spring.dependency-management”.

[Previous page](https://discuss.gradle.org/t/strange-problem-of-gradle-compare-with-maven/22807.md?page=1)
