By default the Gradle Ear plugin copy the dependencies of the deploy configuration in the ear root. How to change this directory?
This is one attempt to move the dependencies to the lib directory. It works but the module path in the deployment descriptor file is still the root of the ear.
dependencies {
deploy project(":product")
}
ear{
filesMatching('*.jar'){file ->
file.name("lib/$file.name")
}
}
<?xml version="1.0"?>
<application>
<module>
<ejb>product-1.0.jar</ejb>
</module>
<library-directory>lib</library-directory>
</application>
Thanks for your help very much!