浏览代码

Merge pull request #4314 from tomalloc/3.0

添加自动模块配置
miemieYaho 3 年之前
父节点
当前提交
22f499af2e
共有 1 个文件被更改,包括 1 次插入0 次删除
  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("-",".")}"
             }
         }
     }