-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
NPE in AbstractAnalyze of Gradle plugin org.owasp.dependencycheck 3.3.0 #91
Comments
Interesting... Is there any chance the full project is available or a can you share the build.gradle? Also - what version of gradle are you using? |
I'm using Gradle 4.9. |
The issue is that ktlint adds a generated JAR artifact, but the artifact's component ID is not actually added to the configuration's dependencies - which completely makes sense for their use case but we were expecting all resolved artifacts for the configuration to be linked directly to a dependency for the configuration. The specific artifact in the cache is: I am doing a bit more investigation and I will implement a fix shortly. However, for now you can continue to use 3.3.0 by skipping the dependencyCheck {
skipConfigurations = ['ktlint']
} |
Also affected by this issue; in this case the build.gradle file contains something like this (No kotlin involved): implementation files("./lib/some.jar") Full build.gradle file available at: Using plugin version 3.3.0 and Gradle 4.8.1 with JDK 10.0.2. If I can do anything to assist with dev or testing, please let me know :) |
@jeremylong Thank you! Skipping the ktlint configuration works. |
@mmoayyed thank you for the second example that can cause this issue! |
We have the same issue as @mmoayyed with a compile dependency:
|
@achwie The fix implemented will resolve your issue as well. I'm hoping to do a full 3.3.1 release before BH next week. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
After upgrading from 3.2.1 to 3.3.0 I'm getting this stacktrace:
The text was updated successfully, but these errors were encountered: