JAR URL in Ivy repository pattern not possible

With Ivy I was able to define an artifact pattern like “jar:http://downloads.sourceforge.net/project/saxon/Saxon-B/[revision]/saxonb8-9-0-4j.zip!/[artifact].[ext]” which worked pretty fine. If I try to configure this within Gradle, it tells me that only file:, http: and https: are allowed. Of course I can use

{code}

repositories {
    add(new org.apache.ivy.plugins.resolver.URLResolver()) {
        addArtifactPattern "jar:http://downloads.sourceforge.net/project/saxon/Saxon-B/[revision]/saxonb8-9-0-4j.zip!/[artifact].[ext]"
    }
}

{code}

But this is deprecated and will not work anymore with 2.0 if you really remove the ability to define own repositories. Even if not, this will constantly nag with deprecated message and as far as I can see there is currently no replacement.

Is there any reason that the URLs are restricted to file:, http: and https:?

Probably these are the only URL types that are implemented.

Ah, ok, I thought you are still using Ivy under the hood, especially as it works fine with the Ivy resolver. May I ask for JAR URL support then? :slight_smile:

Raised GRADLE-3087.

Thanks. :slight_smile:

Ah, bad, I thought I’m smart this time, adding {code}{code} in addition to <code></code>. It renders it as code now in JIRA, but still lost the whitespaces in the beginning and the example JAR url is crumpled. :-/ There is definitely a markdown-JIRA syntax conversion missing. g