Reputation: 24301
I just tried to update my application to Infinspan 10.1.8.Final. I am using Infinispan as a level-2 hibernate (5.4.18.Final) cache via this dependency in build.gradle
:
compile group: 'org.infinispan', name: 'infinispan-hibernate-cache-v53', version: '10.1.8.Final'
The application compiles and starts, but the following is logged when I run the test suite:
warning: unknown enum constant Scopes.GLOBAL
reason: class file for org.infinispan.factories.scopes.Scopes not found
warning: unknown enum constant DataType.TRAIT
reason: class file for org.infinispan.jmx.annotations.DataType not found
Why is this happening? Do I need to include another dependency?
Upvotes: 2
Views: 1409
Reputation: 1334
Try adding compileOnly 'org.infinispan:infinispan-component-annotations:10.1.8.Final'
to the dependencies in your build.gradle
file.
Both enums aren't required at runtime. They are using in compile time to generate metadata required by Infinispan.
Upvotes: 7