Skip to content

downloadLicenses tasks fails when there are local depdencies #38

@spilth

Description

@spilth

We have a project where one of the JARs we are relying is not available in any Maven repository (ojdbc6) so we are referencing locally:

repositories {
    mavenCentral()
    flatDir name: 'localRepository', dirs: 'lib'
}

dependencies {
    compile(":ojdbc6:11.2.0.3")
}

When I run gradle downloadLicenses I get the following error:

$ gradle downloadLicenses
:downloadLicenses FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':downloadLicenses'.
> Could not resolve all dependencies for configuration 'detachedConfiguration51'.
   > Could not download artifact ':ojdbc6:11.2.0.3:ojdbc6.pom'
      > Artifact ':ojdbc6:11.2.0.3:ojdbc6.pom' not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions