浏览代码

添加自动模块配置

tomalloc 3 年之前
父节点
当前提交
7cca610ee3
共有 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("-",".")}"
             }
         }
     }