Skip to content

Commit

Permalink
resolve gradle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeintner committed Sep 8, 2023
1 parent ad5e0f9 commit bf874cd
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,31 @@ test {
useJUnitPlatform()
}

java {
/* not needed since non-modular project */
/* java {
modularity.inferModulePath.set(false)
} */

// org.openjfx.javafxplugin 0.1.0+ issues
// see https://github.com/openjfx/javafx-gradle-plugin/pull/154

// e.g., "copy" configuration from the runtimeClasspath over to xjcCatalogResolution
configurations.xjcCatalogResolution {
def rtCpAttributes = configurations.runtimeClasspath.attributes
rtCpAttributes.keySet().each { key ->
attributes.attribute(key, rtCpAttributes.getAttribute(key))
}
}

// e.g., configure manually
/* configurations.xjcCatalogResolution {
attributes {
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, Usage.JAVA_RUNTIME))
attribute(OperatingSystemFamily.OPERATING_SYSTEM_ATTRIBUTE, objects.named(OperatingSystemFamily, "linux"))
attribute(MachineArchitecture.ARCHITECTURE_ATTRIBUTE, objects.named(MachineArchitecture, "x86-64"))
}
} */

javafx {
version = '17' // '16' // '14.0.2.1'
modules = ['javafx.controls']
Expand Down

0 comments on commit bf874cd

Please sign in to comment.