You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2020/11/21 22:10:37 UTC

[tapestry-5] 01/02: TAP5-2641: fixing automatic module names

This is an automated email from the ASF dual-hosted git repository.

thiagohp pushed a commit to branch java9modules
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit 1929a1bd93b1faceb997e6a29846e15f31552ee1
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Sat Nov 21 19:09:06 2020 -0300

    TAP5-2641: fixing automatic module names
---
 build.gradle | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index 3266f72..a785843 100755
--- a/build.gradle
+++ b/build.gradle
@@ -225,13 +225,15 @@ subprojects {
     }
 
     jar {
-    	// println "JAR projectDir: " + projectDir.getName().replaceAll("5", "")
+    	// println "JAR projectDir: " + projectDir.getName().replaceAll("5", "").replaceAll("tapestry-", "");
         from(projectDir) {
             include "*.txt"
             into "META-INF"
         }
         manifest {
-        	attributes("Automatic-Module-Name": "org.apache.tapestry." + projectDir.getName().replaceAll("5", ""))
+        	attributes("Automatic-Module-Name": "org.apache.tapestry." + projectDir.getName()
+        		.replaceAll("tapestry5", "tapestry")
+        		.replaceAll("tapestry-", ""))
         	if (projectDir.getName().equals("tapestry-version-migrator")) {
         		attributes("Main-Class": "org.apache.tapestry5.versionmigrator.Main")
         	}