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

Migration notes from 0.0.14 to 0.1.0 #154

Merged
merged 11 commits into from
Sep 27, 2023
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,48 @@ Issues can be reported to the [Issue tracker](https://github.com/openjfx/javafx-

Contributions can be submitted via [Pull requests](https://github.com/openjfx/javafx-gradle-plugin/pulls/),
providing you have signed the [Gluon Individual Contributor License Agreement (CLA)](https://cla.gluonhq.com/).

## Migrating from 0.0.14 to 0.1.0 ##
samypr100 marked this conversation as resolved.
Show resolved Hide resolved

Previously on `0.0.14` and below there was a transitive dependency on `org.javamodularity.moduleplugin`.
If your **modular** project stops working after updating to `0.1.0` or above it is likely that you need to
samypr100 marked this conversation as resolved.
Show resolved Hide resolved
samypr100 marked this conversation as resolved.
Show resolved Hide resolved
explicitly add the [org.javamodularity.moduleplugin](https://plugins.gradle.org/plugin/org.javamodularity.moduleplugin)
back to your build and set `java.modularity.inferModulePath.set(false)` to keep things working as they were.

Note: There are other recommended alternatives over `org.javamodularity.moduleplugin` for modular projects such as
[extra-java-module-info](https://github.com/gradlex-org/extra-java-module-info) that would allow you to keep
`inferModulePath` set to **true** by declaring missing module information from legacy jars.

**Groovy**

````groovy
plugins {
// ...
id 'org.openjfx.javafxplugin' version '0.1.0'
id 'org.javamodularity.moduleplugin' version '1.8.12'
}

// ...

java {
// ...
modularity.inferModulePath.set(false)
}
````

**Kotlin**

````kotlin
plugins {
// ...
id("org.openjfx.javafxplugin") version "0.1.0"
id("org.javamodularity.moduleplugin") version "1.8.12"
}

// ...

java {
// ...
modularity.inferModulePath.set(false)
}
````