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

Deduplicate and remove deprecations in IvyActions #91

Merged
merged 7 commits into from
May 2, 2017

Conversation

jvican
Copy link
Member

@jvican jvican commented Apr 28, 2017

This PR is a series of commits with the goal of cleaning up this part of the
API.

The reason why I'm doing this is because I found it very difficult to
understand what the code was doing and I need to implement some hooks for the
dependency lock file.

These are the tasks covered in this commit:

  • 7cb0338 (jvican, 9 hours ago): Add documentation to updateEither
  • b83bc0b (jvican, 9 hours ago): Remove deprecated methods in IvyActions
  • 9a5e188 (jvican, 9 hours ago): Remove unused apply in UnresolvedWarning
  • b426408 (jvican, 9 hours ago): Turn ResolveException private[sbt]
  • c993397 (jvican, 9 hours ago): Remove unused instance of retrieve
  • 1119a6f (jvican, 9 hours ago): Remove coded uplication in updateEither
  • f891b2b (jvican, 13 hours ago): Remove unused arguments in clean and use site

@eed3si9n eed3si9n added the ready label Apr 28, 2017
`cleanCachedResolutionCache` and `clean` were doing extra work because
`clean` does only need to clean the cache in the configuration (that is
a class parameter).
This commit reduces the code duplication in `updateEither` which was
duplicating a good deal of the resolution logic to deal with the
different resolution mechanisms: the simple one and the cached one.

It also unifies the signatures of the helpers that are invoked by
`updateEither`, removing the weirdness of the different return type
signatures and ad-hoc logic handling.
This commit removes the second instance of `retrieve` that was private
and unused, therefore reducing the API surface of `IvyActions`.
Plus, remove deprecated method using `ResolveException`.
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice commits.

@eed3si9n eed3si9n merged commit a3eb9fd into sbt:1.0 May 2, 2017
@eed3si9n eed3si9n removed the ready label May 2, 2017
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.

3 participants