You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not 100% sure if it's an error of this plugin, it might be just a usage problem.
Description
I have a modular Java FX project and module "autumo.ui.demo", which uses some JAR libs. One is the dependency "ch.autumo.commons:autumo-commons:1.1.0", which is a maven build that was created with an automatic module "autumo.commons". So far so good. This library has a maven-dependency to "commons-dbutils:commons-dbutils:1.8.1" that seems to be not a module when looking at its POM file (https://github.com/apache/commons-dbutils/blob/rel/commons-dbutils-1.8.1/pom.xml).
Problem
Now when executing jlink, a merged "module-info.java" is created which has these 2 uses:
uses org.apache.commons.dbutils.PropertyHandler;
uses org.apache.commons.dbutils.ColumnHandler;
These 2 uses are imported in a class in the "autumo.commons" module; so this is correct. But then in the "Task :createMergedModule" this happens:
/Users/Mike/Development/git/repository/autumo-ui-demo/build/jlinkbase/tmpjars/ch.autumo.ui.merged.module/module-info.java:218: Fehler: Package org.apache.commons.dbutils ist nicht vorhanden
uses org.apache.commons.dbutils.PropertyHandler;
^
/Users/Mike/Development/git/repository/autumo-ui-demo/build/jlinkbase/tmpjars/ch.autumo.ui.merged.module/module-info.java:219: Fehler: Package org.apache.commons.dbutils ist nicht vorhanden
uses org.apache.commons.dbutils.ColumnHandler;
^
2 Fehler
The merged "module-info.java" does NOT have the following "requires" or something similar:
requires org.apache.commons.dbutils;
I think this is could the problem. It is not detected as a (automatic) module that is needed for the 2 "uses".
How do I achieve that these 2 "uses" do not fail in the build process?
Some infos:
org.beryx.jlink 2.26.0
Gradle 8.10.2
Kotlin 1.9.24
Groovy 3.0.22
Apache Ant(TM) version 1.10.14 compiled on August 16 2023
Preamble:
I am not 100% sure if it's an error of this plugin, it might be just a usage problem.
Description
I have a modular Java FX project and module "autumo.ui.demo", which uses some JAR libs. One is the dependency "ch.autumo.commons:autumo-commons:1.1.0", which is a maven build that was created with an automatic module "autumo.commons". So far so good. This library has a maven-dependency to "commons-dbutils:commons-dbutils:1.8.1" that seems to be not a module when looking at its POM file (https://github.com/apache/commons-dbutils/blob/rel/commons-dbutils-1.8.1/pom.xml).
Problem
Now when executing jlink, a merged "module-info.java" is created which has these 2 uses:
These 2 uses are imported in a class in the "autumo.commons" module; so this is correct. But then in the "Task :createMergedModule" this happens:
The merged "module-info.java" does NOT have the following "requires" or something similar:
I think this is could the problem. It is not detected as a (automatic) module that is needed for the 2 "uses".
How do I achieve that these 2 "uses" do not fail in the build process?
Some infos:
Attached files:
build.gradle.txt
module-info.java.txt
merged-module-info.java.txt
The text was updated successfully, but these errors were encountered: