[ https://issues.apache.org/jira/browse/OFBIZ-6747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17615671#comment-17615671 ]
Jacques Le Roux commented on OFBIZ-6747: ---------------------------------------- I tried to add caffeine:3.1.1 and got this: {noformat} > Could not resolve com.github.ben-manes.caffeine:caffeine:3.1.1. Required by: project : > No matching variant of com.github.ben-manes.caffeine:caffeine:3.1.1 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally but: - Variant 'apiElements' capability com.github.ben-manes.caffeine:caffeine:3.1.1 declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8 - Variant 'javadocElements' capability com.github.ben-manes.caffeine:caffeine:3.1.1 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about its elements (required them packaged as a jar) - Variant 'runtimeElements' capability com.github.ben-manes.caffeine:caffeine:3.1.1 declares a runtime of a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8 - Variant 'sourcesElements' capability com.github.ben-manes.caffeine:caffeine:3.1.1 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about its elements (required them packaged as a jar) > Could not resolve com.github.ben-manes.caffeine:caffeine:2.9.2. Required by: project : > project :plugins:solr > org.apache.solr:solr-core:8.11.2 > No matching variant of com.github.ben-manes.caffeine:caffeine:3.1.1 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally but: - Variant 'apiElements' capability com.github.ben-manes.caffeine:caffeine:3.1.1 declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8 - Variant 'javadocElements' capability com.github.ben-manes.caffeine:caffeine:3.1.1 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about its elements (required them packaged as a jar) - Variant 'runtimeElements' capability com.github.ben-manes.caffeine:caffeine:3.1.1 declares a runtime of a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8 - Variant 'sourcesElements' capability com.github.ben-manes.caffeine:caffeine:3.1.1 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about its elements (required them packaged as a jar) {noformat} I tried to comment out related tasks. after 3 changes decided to stop. It seems similar to https://github.com/ben-manes/caffeine/issues/716 but I have not yet looked into details > Replace ConcurrentLinkedHashMap by Caffeine > ------------------------------------------- > > Key: OFBIZ-6747 > URL: https://issues.apache.org/jira/browse/OFBIZ-6747 > Project: OFBiz > Issue Type: Task > Components: ALL COMPONENTS > Reporter: Ben Manes > Assignee: Jacques Le Roux > Priority: Minor > > Similar to OFBIZ-3779, please consider upgrading the library used by > [UtilCache|https://github.com/apache/ofbiz/blob/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/cache/UtilCache.java] > (v1.2). The current version is 1.4.2 and is the last major release planned. > The preferable alternative would be to upgrade to > [Caffeine|https://github.com/ben-manes/caffeine]. This is a Java 8 rewrite > based on what I've learned since developing CLHM and Guava's cache. As > expected it provides [superior > performance|https://github.com/ben-manes/caffeine/wiki/Benchmarks]. It also > provides a [near > optimal|https://github.com/ben-manes/caffeine/wiki/Efficiency] eviction > policy. -- This message was sent by Atlassian Jira (v8.20.10#820010)