Browse Source

添加自动模块配置

tomalloc 3 years ago
parent
commit
7cca610ee3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      build.gradle

+ 1 - 0
build.gradle

@@ -127,6 +127,7 @@ subprojects {
                 attributes 'Built-By': System.getProperty("user.name")
                 attributes 'Build-Jdk': System.getProperty("java.version")
                 attributes 'Build-Timestamp': LocalDateTime.now().format("yyyy-MM-dd HH:mm:ss")
+                attributes 'Automatic-Module-Name': "${project.group}.${project.name.replaceAll("-",".")}"
             }
         }
     }