-
Notifications
You must be signed in to change notification settings - Fork 396
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
Fixed StackOverflow when adding exclusions #69
Conversation
Please add a test to the |
@@ -9,6 +10,7 @@ import org.gradle.api.specs.Specs | |||
import org.gradle.api.tasks.util.PatternSet | |||
|
|||
class DependencyFilter { | |||
static Logger log = Logger.getLogger(DependencyFilter.class) |
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'd prefer using the @Slf4j
annotation on the class instead of declaring the logger this way.
@@ -406,4 +406,43 @@ class FilteringSpec extends PluginSpecification { | |||
and: | |||
doesNotContain(output, ['a2.properties']) | |||
} | |||
|
|||
@Issue("SHADOW-69") | |||
def "handle exclude with circular dependency"() { |
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.
Are there actual example of this out in the wild (i.e. circular dependencies in the POM files)?
Do you have an example of one. I'd like to look at it.
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'm assuming you ran into one and that's what revealed this problem.
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.
Yes, the original bug had my stacktrace from real code in the wild. The dependencies where pretty messy, so it wasn't as clean as the simple unit test.
Fixed StackOverflow when adding exclusions
Hi John,
I opened a bug on this, then decided to take a whack at it...
Cheers,
-Brandon