java9-modularity / gradle-modules-plugin

This Gradle plugin helps working with the Java Platform Module System
https://javamodularity.com/
MIT License
233 stars 36 forks source link

Best way to work with Gradle-modules-pluin and org.beryx.jlink #160

Closed PaulWinstone closed 8 months ago

PaulWinstone commented 4 years ago

A bit of advice - may be an additional piece in the readme would be helpful

I am working with Eclipse 2020-03 buildship and a legacy project moving from Java8 to Java11+ using OpenJDK and OpenJFX running Gradle 6.4.1.

I am making progress after a significant learning curve and a number of configuration crashes too complex to clearly specify -

jlink is helpful in assembling as single module from the automatic modules from legacy code How well should jlink work with gralde-modules-plugin?

I am currently not using this plugin but setting

plugins.withType(JavaPlugin).configureEach {
    java {
        modularity.inferModulePath = true
    }
}

java {
    modularity.inferModulePath = true
}
siordache commented 4 years ago

jlink works very well with the gradle-modules-plugin. Actually, all example projects of org.beryx.jlink use the gradle-modules-plugin (or the javafx-gradle-plugin, which applies under the hood the gradle-modules-plugin).