I am using gradle 8 and I only use the JavaExecTask. I get warnings about that javaexec is deprecated. The JavaExecSpec.main property has been deprecated. When I look in the documentation for JavaExecTask for gradle 9 it is not deprecated.
How can make the build gradle 9 compatible?
Is it that the JavaExecTask in gradle 8 uses the deprecated methods?
When I look in the documentation for JavaExecTask for gradle 9 it is not deprecated.
If you really use JavaExecTask, then you do use some plugin, there is no such class in Gradle.
If you instead mean JavaExec and looked at its JavaDoc for Gradle 9, setMain is of course not deprecated, it does not even exist there, if you see it, you look at something different.
If you look at the JavaDoc for Gradle 8, it is shown as deprecated.
How you can make your build Gradle 9 compatible is hard to guess without you showing any code or at least a --stacktrace or optimally a build --scan URL if possible.
The wrong link you could report as bug on GitHub, maybe it will get fixed for an 8.14.5 if one is coming.
The correct link would probably be JavaExecSpec (Gradle API 8.11.1)