Skip to content
This repository was archived by the owner on Jun 24, 2021. It is now read-only.

Commit a7ba860

Browse files
author
jvos
committed
8209836: Add Automatic-Module-Name
Reviewed-by: kcr
1 parent 4fe386e commit a7ba860

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5093,6 +5093,11 @@ compileTargets { t ->
50935093
def modularEmptyPublicationJarTask = project.task("moduleEmptyPublicationJar${t.capital}", type: Jar) {
50945094
destinationDir = file("${dstModularJarDir}")
50955095
archiveName = modularEmptyPublicationJarName
5096+
manifest {
5097+
attributes(
5098+
'Automatic-Module-Name':"${moduleName}Empty"
5099+
)
5100+
}
50965101
}
50975102

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

0 commit comments

Comments
 (0)