I’m trying to use the ear plugin with war. This is the instruction.
dependencies {
// The following dependencies will be the ear modules and
// will be placed in the ear root
deploy project(‘:war’)
// The following dependencies will become ear libs and will
// be placed in a dir configured via the libDirName property
// earlib group: 'log4j', name: 'log4j'
}
But instead, I have to use this from the threads in the forum.
Thank you for the pointer Seto! This is unfortunately not easy to fix. It will require usage-aware dependency resolution, so we can tell apart the case “I want to compile against this project” from “I want to package this project for deployment”.
I’ve corrected the user guide to use the workaround discussed in the bug report.