If I look at the dependency tree it shows that maven loads its dependency …
commons-cli:commons-cli:1.4
However, Gradle does not load this dependency and I am forced to add a compileOnly line in my dependencies like this…
compileOnly ‘org.codehaus.groovy:groovy-cli-commons:’ + groovy_version compileOnly ‘commons-cli:commons-cli:1.4’ // Why is this needed when it is a dependency of groovy-cli-commons ?
Yes, I now see that, but is this just a difference in the way Maven handles “provided” dependencies vs Gradle “compileOnly” dependencies? I was assuming that “provided” was the same as “compileOnly”. Maybe I’m mistaken. Seems like Maven is more “forgiving”… which I will admit is not following what the dependency rules are…