RFR: 8333146: Move maven publication logic from build.gradle [v4]

Marius Hanl mhanl at openjdk.org
Tue Nov 18 10:13:34 UTC 2025


On Tue, 18 Nov 2025 09:17:21 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:

> Could you please verify this observations:
> 
> 1. With this change the jar files are generated without class files i.e. sdk is not built. Use command :
>    `gradle -PMAVEN_PUBLISH=true publishToMavenLocal`.
>    Note that default task `sdk` is not specified in the command.
>    The command completes in just a few seconds (~20 seconds), whereas the `sdk` task can take a few minutes
>    Attaching the screenshot, please observe that size of jar files are just a few 100 bytes. They should be in KBs.

Thanks. I can reproduce this! I always built the sdk first and then run the publishing. But you are right, this should work together as well. My guess is that the maven task need to depend on the build task, that should fix both problems. Will do some testing and report back.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1970#issuecomment-3546657279


More information about the openjfx-dev mailing list