Geo*_*ith 5 dependencies gradle
我正在为jboss ear应用程序编写EJB jar模块.我正在使用gradle,我不想尝试声明jar在运行时从JBoss那里依赖的所有不同依赖项.有没有办法声明目录树中所有文件的依赖项.
Geo*_*ith 10
在build.gradle文件的依赖项部分中,您可以使用FileTree引用.例如:
dependencies {
compile fileTree(dir: "${jbossDir}/client", includes: ['*.jar'])
}
Run Code Online (Sandbox Code Playgroud)
这将包括JBoss/client目录中的所有JAR文件作为编译时依赖项.
| 归档时间: |
|
| 查看次数: |
11090 次 |
| 最近记录: |