Gradle: output from dependant task not included in artifact
已回答
I use IDEA 2016.3.1.
Say, my project has a following structure:
test
ejb
ear
Here is build.gradle from ejb:
task har (type: Zip) {
archiveName 'test.har'
from sourceSets.main.output
}
jar {
from har.outputs.files
}
Here is build.gradle from ear:
apply plugin: 'ear'
dependencies {
deploy project (':ejb')
}
There is no test.har in the artifact created by IDEA (exploded or packaged), but the ear built by gradle contains one.
Is there any possibility to overcome this problem?
请先登录再写评论。
Please file a bug at https://youtrack.jetbrains.com/issues/IDEA.