Thanks! I’ll have a closer look at all your points.
The problem here is that gradle is changing fundamental approaches frequently. E.g. creating tasks for sources jar and javadoc jar used to be the only/recommended solution once (see e.g. here – you did “flag” this particular one, but only in 2023). When I started using gradle, I was happy to have that one solved. You cannot research every few month for alternative approaches for the build scripts.