Open aalmiray opened 1 year ago
I guess it works fine because no task depends the distribution type property as I only use the GitHub release. The jreleaser configuration here is very old and bad as I had no idea what I was doing back when I first created it. It should probably be updated sometime.
OK. Moreover, I suppose releases are done offline. Here's a way to run releases on GitHub targeting multiple platforms
https://github.com/kordamp/ikonli/blob/master/jreleaser.yml https://github.com/kordamp/ikonli/blob/master/.github/workflows/release.yml
The project is a JavaFX application that also relies on beryx's plugins to build the jlink runtimes and native installers via jpackage.
They are done on CI by running each OS separately and updating the body of the release. I already use your linked workflow approach in xpipe, it's just that I didn't also implement it here. This is mostly because the current approach also works even though it's a little bit ugly. I will probably do a complete rewrite of the jreleaser configuration someday.
At first glance I would have expected the following configuration to throw an exception
https://github.com/crschnick/pdx_unlimiter/blob/e52fb88ae0a18af6868724387145b617d993b1bb/gradle/jreleaser.gradle#L74-L79
The
distributionType
property is owned by the distribution (namedapp
) and not by theartifact
DSL element.