Skip to content
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

downloadLicenses tasks fails when there are local depdencies #38

Closed
spilth opened this issue Apr 7, 2014 · 1 comment
Closed

downloadLicenses tasks fails when there are local depdencies #38

spilth opened this issue Apr 7, 2014 · 1 comment

Comments

@spilth
Copy link

spilth commented Apr 7, 2014

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.
hierynomus added a commit that referenced this issue Jun 13, 2014
@hierynomus
Copy link
Owner

Hi @spilth,

You can solve this by adding the following to your build.gradle file:

project.downloadLicenses {
  excludeDependencies = [":ojdbc6:11.2.0.3"]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants