Skip to content

Gradle-native mechanism for adding database driver #504

@chadlwilson

Description

@chadlwilson

Migrated from dependency-check/DependencyCheck#6364 by @sergeykad

I found the example for configuring DB driver dependency for Maven, but is there a similar explanation for Gradle?

I suppose I can add it to the buildscript block, but I think this approach is discouraged in the last Gradle versions. Maybe there is a separate configuration available that allows to specify it like the following?

dependencies {
        dependencyCheck 'org.postgresql:postgresql:42.7.1'
}

The main issue with using buildscript block AFAIK is that dependencies can leak into the project being built or other plugins.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions