subprojects { p -> plugins.withId('java') { p.base { archivesBaseName = "$rootProject.name-$p.name"; } } }