jaredsburrows / gradle-license-plugin

Gradle plugin that provides a task to generate a HTML license report of your project.
https://central.sonatype.com/artifact/com.jaredsburrows/gradle-license-plugin
Apache License 2.0
412 stars 66 forks source link

StackOverflowError when using Gradle module replacement rules #451

Open francescocervone opened 7 months ago

francescocervone commented 7 months ago

We recently added a module replacement rule to address an issue with Guava and Listenablefuture caused by the latest stable Android Gradle Plugin 8.3.

Basically we added this to our root build.gradle file:

allprojects {
    dependencies {
        modules {
            module("com.google.guava:listenablefuture") {
                replacedBy("com.google.guava:guava")
            }
        }
    }
}

When we launch license[Variant]Report, the task fails with a StackOverflowError. I'm not sure if this is a bug of this plugin or Gradle.

Here is the stacktrace