Comments (12)
As a workaround you can configure dependency-check to skip these configurations. Add the following to your build.gradle
:
dependencyCheck {
skipConfigurations=["apiElements", "implementation", "runtimeElements", "runtimeOnly", "testImplementation", "testRuntimeOnly"]
}
from dependency-check-gradle.
I've run checked a few projects with Gradle 3.4-rc-1 and I have not seen this issue come up. Any chance you can provide an example build.gradle that causes this issue? I'm also wondering if this is a dependencyCheck issue or something that needs to be reported to the gradle team?
from dependency-check-gradle.
You have to apply the "java" plugin in order to reproduce the issue:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath('org.owasp:dependency-check-gradle:1.4.5')
}
}
apply plugin: 'org.owasp.dependencycheck'
apply plugin: 'java'
With 3.4 they introduced a couple of configurations that cannot be resolved directly. A simple fix would be to hard-code a blacklist of these configurations, but this seems very fragile. I am currently looking for a more robust and elegant solution.
from dependency-check-gradle.
I have provided a PR for a fix: #33
Since Gradle 3.3 the Configuration class was extended by the information whether it can be resolved: Configuration.isCanBeResolved()
Since Gradle 3.4 e.g. some configurations of the Java Plugin make use of it.
from dependency-check-gradle.
After analyzing thew issue I suppose that the Gradle change was done on purpose. I brought up the question in the Gradle Forum whether the change should be mentioned as Breaking Change in the Release Notes.
from dependency-check-gradle.
@stefanneuhaus thanks for the research (and PR) on this one! I truly appreciate it.
from dependency-check-gradle.
I just upgraded to 3.4 and using version 1.4.5 of this plugin I am still seeing the issue. What version is this fix in?
from dependency-check-gradle.
from dependency-check-gradle.
@jeremylong thanks so much! I love your plugin, keep up the great work!
from dependency-check-gradle.
Hey there, I'd like to know if there is a new ETA for the 1.4.6 release containing this fix.
Thanks in advance! :)
from dependency-check-gradle.
I just pushed 1.4.5.1 - I was trying to hold off for 1.5.0 but there are changes in the core engine that are taking longer then I hoped.
from dependency-check-gradle.
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.
from dependency-check-gradle.
Related Issues (20)
- default data directory in v9
- Database Compability Issue when using Spring Boot 3.2.0
- Sources link on GPP doesn't point to a URL HOT 2
- How to configure the NVD API key? HOT 1
- Redacting the HTML Report HOT 1
- Can props from build.gradle.kts be overwritten with -D or -P parameter? HOT 3
- Lots of NVD API request failures HOT 1
- Error when trying to build image with jib. HOT 3
- java.lang.ClassNotFoundException: org.apache.commons.codec.Charsets with 9.0.10 HOT 6
- Build never finishes with AGP 8.3 HOT 1
- Possibly conflicting information regarding gradle subprojects HOT 6
- Gradle Version Used in 9.1.0 HOT 6
- Please check contains "test" for `skipTestGroups`, not starts with HOT 5
- Plugin make project build fail HOT 5
- Add NVD API key as a parameter HOT 1
- Kotlin 2.0 and test groups problem HOT 1
- Malformed JSON report HOT 4
- dependencyCheckAggregate Analysis failed
- Add configurability of NVD API resultsPerPage to the gradle plugin HOT 1
- Kotlin 2.0 dependencyCheckAggregate is not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dependency-check-gradle.