2
使用其他模块的资源我有项目A和项目B如何模块可以使用gradle这个多模块
项目的单位testings(测试目录下)需要使用资源文件,这在项目b主/资源DIR。
gradle.build上项目答:项目B
dependencies {
.. testCompile project(':web')
}
gradle.build:
task testJar(type: Jar) {
classifier 'resources'
from sourceSets.main.resources
}
仍然失败。 我不知道我错过了什么?
谢谢, 射线。
工作。谢谢。你能解释一下逻辑吗? – rayman
增加了一些文字,让我知道如果这对你有意义。 – RaGe
thx。你为什么不得不在配置{..}下包装它? – rayman