-
Notifications
You must be signed in to change notification settings - Fork 62
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
Make plugin compatible with Java 8 #162
base: master
Are you sure you want to change the base?
Conversation
dec0b8a
to
5bcbb71
Compare
I know I'm late (just stumbled over this), but isn't the fact that the plugin is not needed on Java 8 (because JavaFX is included in Java 8) reason enough not to add workarounds for that version? |
Not at all. |
I disagree. There are plenty of reasons not to make the plugin compatible with Java 8, and this has nothing to do with Gradle toolchains:
So if your only reason to add Java 8 support is that it can be done, better fork the plugin and create a Java 8 compatible release than make life for other developers harder. You can even add Java 6 support if you feel like it. Or a Java 8 compatible branch can be added where bugs can be fixed. But please don't do this to the main development branch. I would rather see developers focus on other tasks, like supporting Windows on ARM, than having to make sure every new line of code is compatible with a Java version that got its last public update six years ago and is a security risk for people still using it. And yes, I know some vendors still provide updates, you can even still get Java 6 updates, but that should be of no concern for the future development of this plugin. |
I also see no reason to make this change. In addition to the points mentioned above, gradle 9 will require JDK 17 as a minimum, so you won't even be able to run the latest gradle on Java 8 before long. |
Name me one that is objectively valid and not just your opinion or plainly wrong. ;-)
If at all, then only marginally in maybe 2 spots.
Not really that much harder, the codebase is very small and almost no API or features of newer Java versions are used anyway and it is unlikely that using them in the futuer will win much. And should that really be the case, it can be switched back to requiring a newer Java version any time but hopefully is not.
Please do not spread this non-sense but research first.
I could not imagine how that could be true.
Again!
For what reason? Please stop being polemic. I'm not doing this PR "because it can be done", but "because it makes sense" and because it makes the lifes of the plugin users easier. I'm also not clear why you at all argumenting.
Again, please stop spreading these inexpressibly fake news. |
That might be the plan, but plans change. But as long as Gradle <9 is supported, it is best for compatibility and usability if plugins support the lowest Java version that is also supported by the lowest supported Gradle version which is Java 8, especially as it does not really cost anything to do so. |
Ultimately, this will be up to @abhinayagarwal or @johanvos to decide whether to accept this PR. I don't see any real benefit in doing this, but maybe they will. |
Now that the modularity plugin is no longer auto-applied, there is not really a reason to not support Java 8 which still is the minimum version all supported Gradle versions support.