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

Kevin Rushforth kcr at openjdk.org
Fri Dec 5 13:47:16 UTC 2025


On Fri, 5 Dec 2025 10:42:13 GMT, Marius Hanl <mhanl at openjdk.org> wrote:

> > Either is fine, but having the `all` task depend on it seems a better choice (the fact that the `sdk` task currently depends on it seems somewhat arbitrary).
> 
> I had a look and gave it a shot.
> 
> If we depend on the `all` task, we will now also build all `apps`, which I think is not a good thing. Since this is unexpected if we just want to (build and) publish the Maven Libraries. In my opinion, the `sdk` task makes more sense (or a task that will do everything except the apps).

I think you might have it backwards: `all` should depend on the task to build the publications, not the other way around. The goal is that `gradle all` should produce `build/publications`.

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

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


More information about the openjfx-dev mailing list