我有两个Gradle项目。两者都是扁平结构,这意味着它们位于相同的路径层次结构中。
/parent_dir
/projectA
/projectA/shared/Shard.gwt.xml
/projectB
/projectB/shared/myProject.gwt.xml
我想在Shard.gwt.xml
中加入myProject.gwt.xml
。这可以通过以下方式完成:
<inherits name='shared.Shared'/>
在projectB中有一个`settings.gradle``,根路径上有以下内容:
includeFlat "projectA"
projectB的build.gradle
如下所示:
dependencies {
compile(project(':projectA')) {
transitive = false
}
}
使用此设置,我运行gradle build
并收到错误:
[ERROR] Unable to find 'shared/Shared.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
如何在ProjectB中包含ProjectA的Shared.gwt.xml?