sagioto / maven2gradle

converts maven dependencies to gradle format
http://sagioto.github.io/maven2gradle/
MIT License
73 stars 35 forks source link

Exclusions getting ignored! #4

Open ahmedmohiduet opened 5 years ago

ahmedmohiduet commented 5 years ago

I couldn't get my pom content:

<dependency>
 <groupId>org.hibernate</groupId>
 <artifactId>hibernate-ehcache</artifactId>
 <version>5.1.0.Final</version>
 <exclusions>
     <exclusion>
         <groupId>net.sf.ehcache</groupId>
         <artifactId>ehcache</artifactId>
     </exclusion>
 </exclusions>
</dependency>

<dependency>
 <groupId>net.sf.ehcache</groupId>
 <artifactId>ehcache</artifactId>
 <version>2.7.0  or above</version>
</dependency>

working, output:

compile "org.hibernate:hibernate-ehcache:5.1.0.Final"
compile "net.sf.ehcache:ehcache:2.7.0  or above"