sksamuel / aedile

Kotlin Wrapper for Caffeine
Apache License 2.0
170 stars 15 forks source link

Could you compile the jar using Java 8? #3

Closed pengkui closed 1 year ago

pengkui commented 2 years ago

It seems aedile-core-1.1.2.jar is compiled by Java 11 (version 55). https://s01.oss.sonatype.org/#nexus-search;quick~aedile

Ref: "java.lang.UnsupportedClassVersionError: com/sksamuel/aedile/core/Cache has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0"

Could you compile it using Java 8 (version 52) for the sake of compatibility?

Reasons we cannot use Java version higher than 8 include: (1) the kotlin-maven-plugin 1.6.x we use targets java 8, (2) we use maven-jar-plugin to build java 8 jars for other legacy systems to use, and (3) other practical reasons...

sksamuel commented 2 years ago

Caffeine itself is Java11 from 3.x so we can't release a 8 version of it.

pengkui commented 2 years ago

How about compiling aedile-core-jdk8 for caffeine-2.9.x ...

sksamuel commented 1 year ago

This library is aimed at caffeine 3.0+