Skip to content

Commit 7329279

Browse files
abhinayagarwalJohan Vos
authored and
Johan Vos
committed
8273754: Re-introduce Automatic-Module-Name in empty jars
Reviewed-by: kcr, jvos
1 parent 51265c0 commit 7329279

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -4790,6 +4790,11 @@ compileTargets { t ->
47904790
def modularEmptyPublicationJarTask = project.task("moduleEmptyPublicationJar${t.capital}", type: Jar) {
47914791
destinationDirectory = file("${dstModularJarDir}")
47924792
archiveFileName = modularEmptyPublicationJarName
4793+
manifest {
4794+
attributes(
4795+
'Automatic-Module-Name':"${moduleName}Empty"
4796+
)
4797+
}
47934798
}
47944799

47954800
def modularPublicationJarName = "${moduleName}-${t.name}.jar"

0 commit comments

Comments
 (0)