Upstream has made it possible to use a recent version of Gradle,
thanks to some patches:
* "1.2.6: changed JVM args to be compatible with Java 17"
-> This is not directly applied, as it fails to apply cleanly; we use substituteInPlace instead
-> c8a6fdd57c
* "1.2.6: updated desktop build script for Gradle 7.0+"
-> 5610142126
Additionally, allows this package to keep working after #352236