gradle / foojay-toolchains

Java Toolchain Resolve Plugin based on the foojay DiscoAPI
Apache License 2.0
126 stars 16 forks source link

Option to specify that JVM should hava JavaFX bundled #28

Closed breuniga closed 1 year ago

breuniga commented 1 year ago

I'd like to specify that the downloaded JVM has JavaFX bundled (parameter javafx_bundled in foojay Disco API). Is that already possible? Or easy to implement?

brian-at-sri commented 1 year ago

I would also like this feature. It looks like it would be easy enough to implement. Just need to add javafx_bundled=true to the query in the backend. I think the issue is there isn't an immediately obvious way to specify you want a javafx_bundled jdk through the gradle toolchain api. I think the easiest way would be to provide an alternate resolver i.e. FoojayFXToolchainResolver which we could set as the resolver class.

jbartok commented 1 year ago

Unfortunately, it's not that simple. This plugin would be simple to modify, as stated, but it wouldn't help because there would need to be support in Gradle for such a fine-grained toolchain selection, which is not there at the moment. Might be coming in future versions, but can't tell for now.