Skip to content

class file for com.google.auto.service.AutoService not found when using NIO #2227

@jean-philippe-martin

Description

@jean-philippe-martin

When trying to compile code that use google-cloud-nio, we get this error at compile time:

class file for com.google.auto.service.AutoService not found

Here's for example what happens with the GATK code once updated to the latest google-cloud:

$ ./gradlew clean compileJava
:clean
:compileJava
/usr/local/google/home/jpmartin/.m2/repository/com/google/cloud/google-cloud-nio/0.20.2-alpha-SNAPSHOT/google-cloud-nio-0.20.2-alpha-SNAPSHOT-shaded.jar(com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.class): warning: Cannot find annotation method 'value()' in type 'AutoService': class file for com.google.auto.service.AutoService not found
error: warnings found and -Werror specified
1 error
1 warning
:compileJava FAILED

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions