Skip to content

Java 16 + Postgresql #348

Discussion options

You must be logged in to vote

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alantonica
Comment options

Answer selected by alantonica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants