-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,13 +52,18 @@ class Resolver { | |
Resolver(Project project) { | ||
this.project = project | ||
this.repositoriesForBuildscript = project.allprojects.collectEntries { proj -> | ||
[proj, proj.buildscript.repositories.asImmutable()] | ||
[proj, new HashSet(proj.buildscript.repositories)] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ben-manes
Author
Owner
|
||
} | ||
this.repositoriesForProject = project.allprojects.collectEntries { proj -> | ||
[proj, proj.repositories.asImmutable()] | ||
[proj, new HashSet(proj.repositories)] | ||
} | ||
|
||
project.repositories.clear() | ||
this.allRepositories = project.allprojects.collectMany { Project proj -> | ||
(proj.repositories + proj.buildscript.repositories) | ||
proj.repositories + proj.buildscript.repositories | ||
}.findAll { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ben-manes
Author
Owner
|
||
// Only RepositoryHandler knows how to determine equivalence | ||
project.repositories.add(it) | ||
} as Set | ||
logRepositories() | ||
} | ||
|
8 comments
on commit c0b83df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow, this doesn't seem right. Now, in a multi-module project, only the root project uses all repositories to resolve the latest versions, the subprojects don't use any repositories at all and all dependencies are listed as unresolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, the problem is related to the project.repositories.clear()
in line 61.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided I was too tired and went to sleep. I guess we'll have to fix this and do another release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sleep sounds great, too bad it's only 4pm here...
I found out that this happens only for a project where I apply the plugin to the root project only. If I apply it to the subprojects, everything's fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah.. its just past 7am here. I of course forgot to run tests before I pushed these changes so this is a mess. I'll have a fix shortly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, pushed a version that actually passes the tests =)
I'll be on the train with slow wifi, but be available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, anything left for 0.11.3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, lets cross our fingers and release =)
This change isn't necessary, is it? Just curious. It shouldn't change anything AFAICT.