-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify different repository for gem resolution #546
Comments
@MarkusAmshove Is your corporate GEMs repo maven-based or rubygems-based? By using (Of course having said of that, there could always be a bug in the jruby-gradle core plugin w.r.t. to private repositories). |
@ysb33r that particular repository is gem based, as it can also work with ruby directly. Do I have to tell gradle to use the gem protocol? The error is strange because it tries to resolve the dependency with the maven repository, which tells me it tries to resolve the maven way. The Artifactory documentation also doesn't state JRuby for this repository type |
Try using
This is just in case the closure delegation does not work correctly. Basically in your case what should happen is that the internal proxy will query your artifact repo and then cache locally as Ivy repo. If you run with |
I've tried I also tried to change the order of repositories:
and now the error order shifts (notice that localhost comes first now):
I've also run the build with |
Just want to add my 2 cents that this is not working for me too - same problem like @MarkusAmshove - I do have the correct ruby gem mirror configured and can browse the gem repo with my browser but if I run it via gradle it does not even look at the configured ruby.gems url but always going to use the configured maven repository instead (which I need too for other dependencies). Seems like an upstream issue though because it does not work just using the jruby-gradle-plugin, reported here: |
Hello,
I'm trying to use the gradle plugin behind a corporate proxy and took the gradle pdf example.
I'm sitting behind a corporal proxy which won't let me resolve stuff from mavencentral, jcenter or ruby gems.
However, we do have Artifactory to proxy those repositories.
My build.gradle looks like this:
The Gradle and Java dependencies seem to resolve correctly, but I'm faced with the following error:
It doesn't seem to take the specified gem repository into account.
Is there anything I can do to point
asciidoctorGems
to the correct repository?The text was updated successfully, but these errors were encountered: