Use gradle to retrieve a maven artefact in a repo with a non standard layout


(Luke Sydenham) #1

I’m trying to get at the dependency here, https://oss.sonatype.org/content/repositories/releases/com/github/mpeltonen/sbt-idea_2.10_0.13/1.5.1/sbt-idea-1.5.1.jar

As you can see the name cannot be simply substituted into the url because there is a non-standard post fix ‘_2.10_0.13’ to the name in the middle of the url.

I am unable to configure the maven repository type as it demands a pure convention approach

I can configure the ivy repository type to generate the correct jar url but sadly it demands that a corresponding ivy.xml in an ivy.xml format exist at the location. I cannot convince it to require a .pom instead.

Is it possible to achieve what I want to achieve using repositories?