【问题标题】:How to include library folder for compilation of classes如何包含用于编译类的库文件夹
【发布时间】:2015-02-09 13:53:11
【问题描述】:

我正在使用gradle 进行多项目构建。在编译期间它会给出错误,因为它没有从本地服务器和 EAR 库中获取库。如何在gradle 中指定这些目录。以及如何从环境变量中指定JBOSS_HOME

PBI:我在 Eclipse 中使用 gradle,我有多个要包含的 jar,因此无法指定每个 jar。

提前致谢。

【问题讨论】:

  • 使用本地 maven 您可以在repositories 部分下使用mavenLocal()。对于其他问题,很难回答 - 问题需要澄清。

标签: java gradle build.gradle gradle-eclipse


【解决方案1】:
dependencies {
    runtime files('libs/a.jar', 'libs/b.jar')
    runtime fileTree(dir: 'libs', include: '*.jar')
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多