Sitelet https://github.com/googleapis/google-cloud-java/issues/2654
Skip to content

build failed after adding google cloud dependency  #2654

Description

@rahuldevanavar91

Hi
I am added google cloud dependency by

 implementation ('com.google.cloud:google-cloud-storage:1.12.0'){
        exclude group: 'com.google.guava'
    }

but my build is failed with the following error

Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.
- auto-value-1.2.jar (com.google.auto.value:auto-value:1.2)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.

tried by disabling annotation processor

packagingOptions {
        exclude 'META-INF/ASL2.0'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/project.properties'
    }

.................
.........

javaCompileOptions {
            annotationProcessorOptions {
                includeCompileClasspath false
            }
        }
........................

I am getting following error
More than one file was found with OS independent path 'project.properties'

Activity

  1. changed the title [-]build failed [/-] [+]build failed after adding google cloud dependency [/+] on Nov 22, 2017
  2. andreamlin commented on Nov 30, 2017

    @andreamlin
    Contributor

    Hi rahuldevanavar91,

    Which dependency management system is this? Why is guava being excluded from the google-cloud-storage dependency?

  3. added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: questionRequest for information or clarification. Not an issue.
    on Nov 30, 2017
  4. rahuldevanavar91 commented on Dec 1, 2017

    @rahuldevanavar91
    Author

    I am using google dependency management .
    I excluded guava because I am not using it.

  5. andreamlin commented on Dec 19, 2017

    @andreamlin
    Contributor

    Would you mind posting your BUILD file, pom.xml, .gradle, or whichever config file that lists your dependencies?

  6. pongad commented on Jan 22, 2018

    @pongad
    Contributor

    I'll close this since it has not been updated for a while. Please reopen if required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions