[External] : Re: Proposal: Allow annotations on module directives

Alex Buckley alex.buckley at oracle.com
Tue Nov 12 20:25:55 UTC 2024


On 11/12/2024 11:28 AM, Alessandro Autiero wrote:
> Would collecting the data as I suggested in the previous message then be 
> a valuable data point in your opinion?
> I can also think of trying to assess if maintainers of popular build 
> tools ever considered shipping a dialect that relied on module-info, but 
> didn’t do so as there wasn’t enough flexibility with the current 
> annotations.

Yes, it would be interesting to know the incidence of annotations on 
module declarations.

As for Maven/Gradle, there was substantial outreach to their maintainers 
in the JDK 9 era. The Maven lead wrote about module declarations at the 
time: 
https://www.sitepoint.com/maven-cannot-generate-module-declaration/  As 
a result, it seems pretty complicated to use Maven and Java modules 
today: https://www.baeldung.com/maven-multi-module-project-java-jpms 
Maybe you can convince the Maven maintainers that more annotations are 
what they need, I don't know.

Alex


More information about the compiler-dev mailing list