Is it possible to specify which version of ProGuar...
# compose-desktop
s
Is it possible to specify which version of ProGuard to use? 7.2.2 seems to be the default and only supports up to Java 18, if I understand well.
m
As far as I know this is hard-wired at the moment. I also wait for a ProGuard update to 7.4 in order to be able to use Java 21 with Compose Desktop.
m
You can customize the proguard version you want to use:
Copy code
buildTypes.release.proguard {
                version.set(/*7.3.2 or 7.4 or whatever*/)
            }
🙏 1
👍 1
m
Since when is that available and does it work for desktop too? I did not get that configured and running. And I also wonder why this issue was not closed then if it is so easy to configure that.
m
don't know since when exactly but there are some projects that already define an explicit proguard version like Tachidesk-JUI which relies on proguard "7.3.2" version
I'm guessing the issue might be about making it available by default so you don't have to do any additional configuration steps? or there might be some implicit dependencies on that default version that I'm not aware of?
m
It must be
Copy code
compose.desktop {
  buildTypes.release.proguard {
    version.set("7.4.0")
  }
}
I missed the .0 at the end.
🎉 1
2