I’m writing an EJB jar module for a jboss ear application. I’m using gradle and I don’t want to try to declare all of the different dependencies that the jar would rely on at runtime from JBoss. Is there a way to declare dependencies on all files within a directory tree.
Share
In the dependencies section of your
build.gradlefile you can use aFileTreereference. For example:This will include all of the JAR files in the JBoss / client directory as compile-time dependencies.