Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
By default trying to resolve dependencies from remote when locally no…
Browse files Browse the repository at this point in the history
…t available. Fixes 4finance/stub-runner-spring#16
  • Loading branch information
nurkiewicz committed Jan 7, 2015
1 parent 6c362c4 commit c2f8069
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ class StubRunnerConfiguration {
log.info("Resolving dependency ${depToGrab} location in local repository...")
try {
resolveDependencyLocation(depToGrab)
} catch (Exception e) {
log.warn("Unable to find dependency $depToGrab in local repository")
delegate.resolveDependencyLocation(depToGrab)
} catch (Exception ignored) {
log.warn("Unable to find dependency $depToGrab in local repository, trying $stubRepositoryRoot")
delegate.resolveDependency(stubRepositoryRoot, depToGrab)
}
}

Expand Down

0 comments on commit c2f8069

Please sign in to comment.