Giter Site home page Giter Site logo

Comments (12)

stefanneuhaus avatar stefanneuhaus commented on August 28, 2024 1

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.

jeremylong avatar jeremylong commented on August 28, 2024

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.

stefanneuhaus avatar stefanneuhaus commented on August 28, 2024

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.

stefanneuhaus avatar stefanneuhaus commented on August 28, 2024

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.

stefanneuhaus avatar stefanneuhaus commented on August 28, 2024

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.

jeremylong avatar jeremylong commented on August 28, 2024

@stefanneuhaus thanks for the research (and PR) on this one! I truly appreciate it.

from dependency-check-gradle.

johnscancella avatar johnscancella commented on August 28, 2024

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.

jeremylong avatar jeremylong commented on August 28, 2024

from dependency-check-gradle.

johnscancella avatar johnscancella commented on August 28, 2024

@jeremylong thanks so much! I love your plugin, keep up the great work!

from dependency-check-gradle.

dodgex avatar dodgex commented on August 28, 2024

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.

jeremylong avatar jeremylong commented on August 28, 2024

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.

lock avatar lock commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.