openjfx / javafx-gradle-plugin

Gradle plugin that makes it easy to work with JavaFX 11+
https://openjfx.io/
BSD 3-Clause "New" or "Revised" License
361 stars 62 forks source link

Remove classifier from JavaFX artifacts when publishing to Maven Central #26

Open jperedadnr opened 5 years ago

jperedadnr commented 5 years ago

The JavaFX gradle plugin applies the required platform-dependent classifier to any JavaFX module included in a project.

But if this project is being published with the maven plugin, this plugin generates a pom file based on the existing dependencies. Since the JavaFX ones include the classifier, this classifier will go to the pom. In other words, the pom will have a JavaFX dependency with a classifier based on the platform from where it was published.

If later on this library is consumed in a different platform, artifacts for both platforms will be added, causing a possible conflict due to split package.

To avoid this issue, the JavaFX gradle plugin could add a task to remove the classifier in case the maven plugin is used.

tobiasdiez commented 4 years ago

I think for the same reason, Intellj also adds dependencies for all platforms: image although I'm on Windows. This is really annoying, as the linux and mac version have to be removed manually after each gradle sync.

effad commented 3 years ago

Any news on this issue? As the maintainer of ValidatorFX I am not able to release a "correct" POM-File of the library at the moment :-(.