Open prashantbhat opened 4 years ago
Same issue on Java 14, using HikariCP 3.4.5
@prashantbhat @smironov Can one of you send a pull request?
Opened PR #1587 with an update to latest Slf4J to use it's correct module name. Please review.
@brettwooldridge any chance of getting this merged and released?
Is there any workaround for this error?
It's December, and still no one is close?
@prashantbhat Thanks for the update but I still has the same error
I work on a project using JAVA 11, MAVEN and JAVAFX13.
module-info.java looks like :
module com.mautourco.finance {
requires javafx.controls;
requires javafx.fxml;
requires java.sql;
requires javafx.base;
requires javafx.graphics;
requires com.zaxxer.hikari;
opens com.mautourco.finance to javafx.fxml;
opens com.mautourco.finance.controller to javafx.fxml;
opens com.mautourco.finance.model to javafx.base;
exports com.mautourco.finance;
}
I tried to add requires com.zaxxer.hikari.metrics but I got this : com.zaxxer.hikari.metrics cannot be resolved to a module
Please, any idea ?
Downgrading to 2.4.7 works for me
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>2.4.7</version>
</dependency>
module com.mautourco.finance {
requires javafx.controls;
requires javafx.fxml;
requires java.sql;
requires javafx.base;
requires javafx.graphics;
requires HikariCP;
opens com.mautourco.finance to javafx.fxml;
opens com.mautourco.finance.controller to javafx.fxml;
opens com.mautourco.finance.model to javafx.base;
exports com.mautourco.finance;
}
Hello ! I'm facing the same issue during Java 11+ migration My projet is a Springboot 2.3.5 project with HikariCP 3.4.5 as dependency. I see that this issue is known and a fix has been set up.
@brettwooldridge Any idea why a new release is not done with this fix ? No release since may 2020... Please help !
Thanks, JN Grx
After updating to the release version 3.4.5, I get the following error. (using Java 11)
The
module-info
(release 3.4.5) defines following dependencies withrequires
directive:For HikariCP, these dependencies are optional, as in the pom.xml.
Adding the
static
modifier makes them optional, as defined in java.lang.module package summarySo, it will be very useful if these dependencies are changed to be
static
. Thanks.