https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
s

Sean Proctor

11/06/2023, 12:50 AM
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

Michael Paus

11/06/2023, 6:47 AM
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

MR3Y

11/06/2023, 11:04 AM
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

Michael Paus

11/06/2023, 1:21 PM
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

MR3Y

11/06/2023, 1:26 PM
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

Michael Paus

11/06/2023, 5:09 PM
It must be
Copy code
compose.desktop {
  buildTypes.release.proguard {
    version.set("7.4.0")
  }
}
I missed the .0 at the end.
🎉 1
1
2 Views