Skip to content
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

Proxy repo config #472

Closed
wants to merge 3 commits into from
Closed

Proxy repo config #472

wants to merge 3 commits into from

Conversation

jsuereth
Copy link
Member

With this patch it's now possible to force builds to use only boot resolvers with
the following: -Dsbt.override.build.repos=true

Also, you can configure a /.sbt/repositories file such that only proxy repositories show up. Here's what mine looks like:

[repositories]
  local
  ivy-proxy: http://localhost:8081/artifactory/repo/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext] 
  maven-proxy: http://localhost:8081/artifactory/repo/

Closes #414 (For me at least. Some testing from more complicated builds would be ideal.)

* Added  key which pulls the repositories used by the launcher, if the API allows.
* Added  which configures whether or not  should just use .
* Added parsing to launcher so  java property is used by default for override setting.
* Configuration parsing now looks for a ivy.resolver-config property for alternative resolver config.
* ivy.resolver-config defaults to ~/.sbt/repositories
* If the resolve config file exists, its [resolvers] section is used instead of sbt-launch.jar's
* Attempted to re-use as much code as possible and add as little as needed.
@harrah
Copy link
Member

harrah commented May 31, 2012

Looks good. There are a few minor suggestions to take care of and it will be ready to merge.

* Puppies may rest easy from the removal of Option.get calls.
* better names for config values
* Added a helper method to avoid any possible code duplication, besides repeated def, val, match and for keywords.
  Looking for ways to remove this duplciation ASAP.
* Moved from pattern match to ._1, my most hated member.
@jsuereth
Copy link
Member Author

Alright, fixes in place. Feel free to take a second gander. Note: Commit messages reflect my unusually mirthful state and hopefully are not offensive.

@harrah
Copy link
Member

harrah commented May 31, 2012

Merged in harrah@76d2409

@harrah harrah closed this May 31, 2012
@jsuereth
Copy link
Member Author

Just a note: Issue #414 might want to get closed once this is validated?

@harrah harrah mentioned this pull request May 31, 2012
@harrah
Copy link
Member

harrah commented May 31, 2012

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants