Skip to content

Cannot use incubator modules #177

Open
@jeffalder

Description

@jeffalder

In order to use incubator modules with the gradle plugin, I have to do the following:

  1. Add --add-exports from javafx.graphics and javafx.base
  2. Declare explicit implementation dependencies on the libs

I cannot figure out how to make the run task consider these dependencies for the module path, so maybe there's something I'm missing.

I propose to add incubator modules to the JavaFXModule enum so they can be specified as expected:

javafx {
    version = "25-ea+18"
    fxModules = setOf<String>("javafx.controls", "javafx.web", "jfx.incubator.richtext", "jfx.incubator.input")
}

Once this works, module-path and add-modules work, and I can modularize my application.

(Note 1: the module-info.java for richtext declares a dependency on the input module but the POM for it does not. I submitted a report to JBS but I don't see it yet.)

(Note 2: the incubator modules are "available" in JavaFX 24 but they are not published; see https://bugs.openjdk.org/browse/JDK-8354462)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions