Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal depdency conflict #20

Open
effad opened this issue Aug 21, 2024 · 1 comment
Open

Internal depdency conflict #20

effad opened this issue Aug 21, 2024 · 1 comment

Comments

@effad
Copy link

effad commented Aug 21, 2024

When trying to integrate PDFViewFX into our application (which has very strict checking of dependencies) we get the following conflict:

> Task :checkDuplicates
org.openjfx:javafx-controls:19
  Variant runtime:
    | Attribute Name             | Provided     | Requested |
    |----------------------------|--------------|-----------|
    | org.gradle.category        | library      |           |
    | org.gradle.libraryelements | jar          |           |
    | org.gradle.status          | release      |           |
    | org.gradle.usage           | java-runtime |           |
   Selection reasons:
      - By conflict resolution: between versions 19 and 18

org.openjfx:javafx-controls:19
\--- com.dlsc.pdfviewfx:pdfviewfx:3.1.0
     \--- dependencyCheck

org.openjfx:javafx-controls:18 -> 19
+--- com.dlsc.unitfx:unitfx:1.0.10
|    \--- dependencyCheck
\--- org.openjfx:javafx-fxml:18
     \--- com.dlsc.unitfx:unitfx:1.0.10 (*)

So while pdfviewfx wants javafx-controls:19, the com.dlsc.unitfx:unitfx Library wants javafx-controls:18.

We can exclude the dependencies manually but it would be better if PDFViewFX had consistent dependencies (or no dependencies at all if (as I suspect) any (modern) JavaFX-Version can be used.

@dlemmermann
Copy link
Collaborator

You can control the "required JavaFX version" by setting this property: <javafx.version>19</javafx.version>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants