Java 16 + Postgresql #348
-
Hi, I'm trying to add bucket4j on my project (spring boot) which uses a postgresql db. There are a couple of questions I want to ask:
Edit: I think i figured this out. We can create a bean with
to my project, it stops working.
Thank you. If you need me to provide more information, just let me know.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @alantonica Most likely problem is caused by jarhell related to Hikari datasource. Unfortunately it has been defined in bucket4j-postgresql pom.xml with wrong scope. Legacy com.zaxxer:HikariCP:java6:2.3.8 is not compatible with JPMS. Try to fix dependency in this way: <dependency>
<groupId>com.bucket4j</groupId>
<artifactId>bucket4j-postgresql</artifactId>
<version>8.2.RC2</version>
<exclusions>
<exclusion>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP-java6</artifactId>
</exclusion>
</exclusions>
</dependency> Anyway, pom.xml for bucket4j-postgresql as well as bucket4j-mysql will be fixed in next release. |
Beta Was this translation helpful? Give feedback.
Hello @alantonica
Most likely problem is caused by jarhell related to Hikari datasource. Unfortunately it has been defined in bucket4j-postgresql pom.xml with wrong scope. Legacy com.zaxxer:HikariCP:java6:2.3.8 is not compatible with JPMS.
Try to fix dependency in this way:
Anyway, pom.xml for bucket4j-postgresql as…