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

Fixed StackOverflow when adding exclusions #69

Merged
merged 3 commits into from
Jul 16, 2014

Conversation

brandonkearby
Copy link
Contributor

Hi John,

I opened a bug on this, then decided to take a whack at it...

Cheers,

-Brandon

@johnrengelman
Copy link
Collaborator

Please add a test to the FilteringSpec class to verify this behavior.

@@ -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)
Copy link
Collaborator

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.

@johnrengelman johnrengelman added this to the 1.0.3 milestone Jul 7, 2014
@@ -406,4 +406,43 @@ class FilteringSpec extends PluginSpecification {
and:
doesNotContain(output, ['a2.properties'])
}

@Issue("SHADOW-69")
def "handle exclude with circular dependency"() {
Copy link
Collaborator

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.

Copy link
Collaborator

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.

Copy link
Contributor Author

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.

johnrengelman added a commit that referenced this pull request Jul 16, 2014
Fixed StackOverflow when adding exclusions
@johnrengelman johnrengelman merged commit 3349095 into GradleUp:master Jul 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants