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

java.lang.IncompatibleClassChangeError when running dependency-check-gradle 10.0.4 in gradle 7.6.4 #411

Open
Grimoren opened this issue Sep 10, 2024 · 1 comment

Comments

@Grimoren
Copy link

...
         Caused by: java.lang.IncompatibleClassChangeError: Class org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated does not implement the requested interface org.gradle.api.Named
         at org.owasp.dependencycheck.gradle.tasks.AbstractAnalyze.shouldBeSkipped(AbstractAnalyze.groovy:334)
         at org.owasp.dependencycheck.gradle.tasks.AbstractAnalyze$_processConfigurations_closure7.doCall(AbstractAnalyze.groovy:431)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at org.gradle.api.specs.internal.ClosureSpec.isSatisfiedBy(ClosureSpec.java:33)
         at org.gradle.api.internal.collections.CollectionFilter.filter(CollectionFilter.java:46)
         at org.gradle.api.internal.collections.FilteredCollection$FilteringIterator.findNext(FilteredCollection.java:122)
         at org.gradle.api.internal.collections.FilteredCollection$FilteringIterator.<init>(FilteredCollection.java:116)
         at org.gradle.api.internal.collections.FilteredCollection.iterator(FilteredCollection.java:161)
         at org.gradle.api.internal.DefaultDomainObjectCollection.findAll(DefaultDomainObjectCollection.java:448)
         at org.gradle.api.internal.DefaultNamedDomainObjectSet.findAll(DefaultNamedDomainObjectSet.java:82)
         at org.owasp.dependencycheck.gradle.tasks.AbstractAnalyze.processConfigurations(AbstractAnalyze.groovy:430)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at org.owasp.dependencycheck.gradle.tasks.Aggregate$_scanProject_closure1.doCall(Aggregate.groovy:56)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...




@vidgeus
Copy link

vidgeus commented Oct 15, 2024

@jeremylong is there an update on this issue ? We are facing the same error using gradle 7.6.4 and latest OWASP (10.0.4)

buildscript {
    dependencies {
        classpath 'org.owasp:dependency-check-gradle:+'
    }
}

NOTE: currently on this GitHub repo it says latest release is 10.0.3, but on the plugin page (link) it says latest is 10.0.4.

jeremylong added a commit that referenced this issue Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants