-
Notifications
You must be signed in to change notification settings - Fork 928
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
Adding resolvers to build.sbt doesn't work #5172
Comments
@lukoyanov Thanks for the report. I agree with your expectation. There's a setting called |
@eed3si9n thank you for quick reply. I've just tried to add my corporate artifactory url and sbt behaviour stays the same (resolvers not being added).
And sbt output was:
It seems that it's not related to JCenter (and useJCenter configuration option), but an issue affects more generic case. I think many projects rely on this way of resolvers configuration so a workaround would be very helpful. |
@lukoyanov shouldn't rezolvers be added to plugins.sbt? |
Well, as far as I remember it's correct to add resolvers to build.sbt. I didn't find any restrictions in docs: |
Indeed but I added them to plugins.sbt and it worked. I ended up on this issue because adding them to build.sbt did not work for me either with sbt 1.3.4. Maybe it works for you too as a workaround until this is fixed or they fix the docs. |
@MihaiAnei Thank you for sharing this piece of information. I've ended up adding required repositories into .sbt/repositories file (global configuration). |
I can't reproduce this with the attached minimal sbt-sample file. sbt 1.2.8, 1.3.2; the original repeats of JCenter resolvers in the attached file, or two other different resolvers; Do you possibly have |
Indeed, I have this option set to Looks like this was the root cause of the issue. Thank you @ches! |
In my case, I had the following in my shell: SBT_OPTS=-Dsbt.override.build.repos=true Unset it and it worked! :) |
steps
sbt version: 1.3.2, 1.3.0, 1.2.8
problem
when I add a resolver to my build.sbt using
OR
resolver is not added. I've checked it via "show fullResolvers"
expectation
Resolver is added and used for artifacts resolution.
notes
and compare results (I expect that "fullResolvers" list contains all items from "resolvers" list)
My output is:
project to reproduce
sbt-sample.tar.gz
The text was updated successfully, but these errors were encountered: