sonatype-nexus-community / scan-gradle-plugin

Gradle plugin that scans the dependencies of a Gradle project using Sonatype platforms: OSS Index and Nexus IQ Server.
Apache License 2.0
77 stars 22 forks source link

[BUG] StackOverflowError #161

Closed jwise-sncr closed 3 months ago

jwise-sncr commented 4 months ago

Description When running the nexusIQScan task I receive a StackOverflowError with the following stack trace snippet:

Caused by: java.lang.StackOverflowError: (No message provided) org.sonatype.gradle.plugins.scan.common.DependenciesFinder.fillAllChildDependencies (DependenciesFinder.java:432) org.sonatype.gradle.plugins.scan.common.DependenciesFinder.fillAllChildDependencies (DependenciesFinder.java:436) org.sonatype.gradle.plugins.scan.common.DependenciesFinder.fillAllChildDependencies (DependenciesFinder.java:436) org.sonatype.gradle.plugins.scan.common.DependenciesFinder.fillAllChildDependencies (DependenciesFinder.java:436) ...

To Reproduce I'm working to create a minimal reproducer. From the stack trace, it appears to be a circular dependency of some sort.

Expected behavior A successful scan.

Screenshots N/A

Desktop (please complete the following information):

Additional context

  1. Appears this logic was introduced in 2.8.0. Version 2.7.0 scans the same project successfully.
  2. excludeCompileOnly = true
guillermo-varela commented 3 months ago

Version 2.8.3 includes a changes that might fix this issue, however it's only available through the Gradle plugins portal. There is an error publishing to Central Repository that will be reviewing.

guillermo-varela commented 3 months ago

@jwise-sncr, version 2.8.3 has been now completely published. Please check if that one works for you.

jwise-sncr commented 3 months ago

It works now. Thank you!