plugins {
id 'org.openjfx.javafxplugin' version '0.0.9'
}
javafx {
configuration = 'api'
version = '17'
modules = ['javafx.base', 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.media', 'javafx.swing', 'javafx.web']
}
The module is reported as UP-TO-DATE when running assemble twice:
gradle assemble
gradle assemble
I would now expect the module to be UP-TO-DATE when stopping the Gradle Daemon between the two assemble runs:
gradle assemble
gradle --stopp
gradle assemble
However this is not the case. Strangely when ran with the --info switch, Gradle reports that the input property Classpath was changed and the module therefore needs to be rebuilt.
Task ':common-fx:compileJava' is not up-to-date because:
Input property 'classpath' file /home/ursl/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-swing/17/8dee489b0faecf27568bfe64efdc7aa01410defa/javafx-swing-17-linux.jar has been removed.
Input property 'classpath' file /home/ursl/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-web/17/bbd71beaf561b72f0d3eb6268d3114573b7799c3/javafx-web-17-linux.jar has been added.
Input property 'classpath' file /home/ursl/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-web/17/bbd71beaf561b72f0d3eb6268d3114573b7799c3/javafx-web-17-linux.jar has been removed.
Even more strangely, these reported changes are not consistent. The "changed" dependencies vary every time the above commands are repeated.
A Gradle module has the following configuration:
The module is reported as UP-TO-DATE when running assemble twice:
I would now expect the module to be UP-TO-DATE when stopping the Gradle Daemon between the two assemble runs:
However this is not the case. Strangely when ran with the
--info
switch, Gradle reports that the input propertyClasspath
was changed and the module therefore needs to be rebuilt.Even more strangely, these reported changes are not consistent. The "changed" dependencies vary every time the above commands are repeated.