What happened?
when add benchmark on span in #176 and run ./gradlew jmh
> Task :tracing-benchmarks:compileJmhJava FAILED
warning: unknown enum constant ImplementationVisibility.PACKAGE
reason: class file for org.immutables.value.Value$Style$ImplementationVisibility not found
error: warnings found and -Werror specified
1 error
1 warning
This is because the tracing-api module uses @immutables but does not include the annotations as compile time dependencies (it cannot find the styles classes). This causes downstream java warnings., forcing downstream consuming project add annotations in their compile classpath.
Two possible solutions would be to:
include the annotations in the classpath:
compile group: 'org.immutables', name: 'value', classifier: 'annotations'
create and switch to an annotation provided in the auth-tokens module itself (i.e. something named @ImmutableStyles)
see similar issues in other palantir projects:
palantir/auth-tokens#28
palantir/dropwizard-web-security#54
solution suggested by immutables author:
immutables/immutables#291 (comment)
What did you want to happen?
What happened?
when add benchmark on span in #176 and run
./gradlew jmhThis is because the tracing-api module uses @immutables but does not include the annotations as compile time dependencies (it cannot find the styles classes). This causes downstream java warnings., forcing downstream consuming project add annotations in their compile classpath.
Two possible solutions would be to:
include the annotations in the classpath:
compile group: 'org.immutables', name: 'value', classifier: 'annotations'
create and switch to an annotation provided in the auth-tokens module itself (i.e. something named @ImmutableStyles)
see similar issues in other palantir projects:
palantir/auth-tokens#28
palantir/dropwizard-web-security#54
solution suggested by immutables author:
immutables/immutables#291 (comment)
What did you want to happen?