Open jingtang10 opened 3 years ago
Caffeine 3.0+ does not plan to support Android. Caffeine 3.0 already requires a java.lang.System.getLogger
from the JEP-264: Platform Logging API to redirect logs to slf4j. Unfortunately, Android has not provided a System.getLogger
interface yet. This means that every use of 3.0+ on Android will simply crash on runtime.
Maybe the right way forward is to build a ServiceLoader for a caching service and provide both Caffeine and Guava implementations (maybe LruCache as well?). Then migrate the HapiWorkerContext and others to the new service loader.
Describe the bug
Caused by: java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.Caffeine
To Reproduce Steps to reproduce the behavior:
Create a new java project using gradle.
Add dependency to hapi structures lib
Create a main class that does the following:
Expected behavior It should run.
Actual behavior
Environment (please complete the following information):
Additional info This can be resolved by adding the following explicit dependency to my project:
but I shouldn't need to do this. Is this a problem with the pom.xml file?