JavaFX applications fail to build with Maven 3.9.7

Johan Vos johan.vos at gluonhq.com
Wed May 29 15:19:07 UTC 2024


Yes, that is why I filed https://bugs.openjdk.org/browse/JDK-8333147
(which hints at a fix:
Instead of `classifier "$t.name"` we should now use `archiveClassifier.set(
t.name)`
)

- Johan

On Wed, May 29, 2024 at 4:58 PM John Neffenger <john at status6.com> wrote:

> On 5/29/24 12:19 AM, Joeri Sykora wrote:
> > maven artifacts are generated when providing the following gradle
> > property: -PMAVEN_PUBLISH=true
>
> I can't get that to work. Is there some other option I need to pass?
>
> $ bash gradlew -PMAVEN_PUBLISH=true publishToMavenLocal
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file '/home/ubuntu/src/jfx/build.gradle' line: 1734
>
> * What went wrong:
> A problem occurred configuring root project 'jfx'.
>  > Failed to notify project evaluation listener.
>     > Could not find method classifier() for arguments [linux] on task
> ':base:modularPublicationJarLinux' of type
> org.gradle.api.tasks.bundling.Jar.
>     > Could not find method classifier() for arguments [linux] on task
> ':graphics:modularPublicationJarLinux' of type
> org.gradle.api.tasks.bundling.Jar.
>     > Could not find method classifier() for arguments [linux] on task
> ':controls:modularPublicationJarLinux' of type
> org.gradle.api.tasks.bundling.Jar.
>     > Could not find method classifier() for arguments [linux] on task
> ':swing:modularPublicationJarLinux' of type
> org.gradle.api.tasks.bundling.Jar.
>     > Could not find method classifier() for arguments [linux] on task
> ':fxml:modularPublicationJarLinux' of type
> org.gradle.api.tasks.bundling.Jar.
>     > Could not find method classifier() for arguments [linux] on task
> ':media:modularPublicationJarLinux' of type
> org.gradle.api.tasks.bundling.Jar.
>     > Could not find method classifier() for arguments [linux] on task
> ':web:modularPublicationJarLinux' of type
> org.gradle.api.tasks.bundling.Jar.
>
> John
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240529/2d4cec9d/attachment.htm>


More information about the openjfx-dev mailing list