changeset 11036:428db1432904

8209836: Add Automatic-Module-Name Reviewed-by: kcr
author jvos
date Thu, 23 Aug 2018 09:32:08 +0200
parents c97fa2cc59b0
children 1c41a955fdea 715e70cb0e92
files build.gradle
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Tue Aug 21 20:36:28 2018 -0700
+++ b/build.gradle	Thu Aug 23 09:32:08 2018 +0200
@@ -5093,6 +5093,11 @@
         def modularEmptyPublicationJarTask = project.task("moduleEmptyPublicationJar${t.capital}", type: Jar) {
             destinationDir = file("${dstModularJarDir}")
             archiveName = modularEmptyPublicationJarName
+            manifest {
+                attributes(
+                    'Automatic-Module-Name':"${moduleName}Empty"
+                )
+            }
         }
 
         def modularPublicationJarName = "${moduleName}-${t.name}.jar"