Skip to content

Commit

Permalink
Caffeine JCache support per quarkusio#27935
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Berman authored and javaduke committed Sep 14, 2022
1 parent 9a5bc36 commit 73b8dd3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3142,6 +3142,17 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>jcache</artifactId>
<version>${caffeine.version}</version>
<exclusions>
<exclusion>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,9 @@ void cacheLoaders(CombinedIndexBuildItem combinedIndex, BuildProducer<Reflective
NativeImageFeatureBuildItem nativeImageFeature() {
return new NativeImageFeatureBuildItem(CacheConstructorsFeature.class);
}

@BuildStep
void loadDefaultJCacheConfiguration(BuildProducer<NativeImageResourceBuildItem> resource) {
resource.produce(new NativeImageResourceBuildItem("reference.conf"));
}
}
4 changes: 4 additions & 0 deletions extensions/caffeine/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
</dependency>
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>jcache</artifactId>
</dependency>
<dependency>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>svm</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public static String[] typesNeedingConstructorsRegistered() {
"com.github.benmanes.caffeine.cache.SSMSA",
"com.github.benmanes.caffeine.cache.SSMSW",
"com.github.benmanes.caffeine.cache.SSW",

"com.github.benmanes.caffeine.jcache.copy.JavaSerializationCopier"
};
}

Expand Down

0 comments on commit 73b8dd3

Please sign in to comment.