JDK-8276170 : Create Sources when publishing to Maven
Type:Enhancement
Component:javafx
Sub-Component:build
Priority:P4
Status:Open
Resolution:Unresolved
Submitted:2021-10-29
Updated:2024-11-21
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
When calling publish or publishToMavenLocal, no sources are published. Ideally the sources should be published automatically.
Comments
I agree with Johan that it adding these tasks to build.gradle might not have been the best choice.
Distribution tasks that are specific to the build environment of the OpenJFX vendor (Gluon in this case) distributing the artifacts should ideally not be in the repo.
In any case, Johan can decide what to do here. Possible options include accepting a fix for this issue or closing it as "Won't fix". In the latter case, he may or may not decide to file a follow-up issue to remove the publication tasks.
02-11-2021
But then, how should the distribution be done? How are the maven artifacts generated when an official new release is done?
31-10-2021
Actually, in hindsight I think adding the publish and publishToMavenLocal to the build.gradle was a mistake.
The build.gradle is already very long and complex.
I think it should focus on compiling and building, validating the sources etc. Not on distributing.