【发布时间】:2014-01-28 20:10:06
【问题描述】:
我不确定这是更多 Gradle 还是 Intellij Idea 问题。在 projet 中,我使用 gradle import(从 Idea 中的 Gradle 外部模型导入)导入到 Idea,我的 build.gradle 除了其他内容外,还包含以下内容:
apply plugin: 'idea'
idea {
project {
// When ext.(extra property) is not used, gradle complains about
// deprecated dynamic property, but only here, not when setting
// module name.
ext.name = 'SimpleStoreClient'
}
module {
name = 'SimpleStoreClient'
}
}
项目导入完成后,我在Idea中打开模块设置,模块名称在gradle build script中设置为1,但项目名称只是rootdir名称。我尝试了几种设置项目名称的替代方法,但没有将名称传播到 Idea。 我想我只是错过了 Idea 插件的一些属性,但我找不到它是什么。
提前感谢您的任何建议!
【问题讨论】:
标签: intellij-idea gradle