【发布时间】:2013-11-20 05:12:13
【问题描述】:
给定一个 build.gradle 具有如下依赖项:
dependencies {
compile fileTree(dir: 'myLegacyLibsNotYetConverted/lib', include: '*.jar')
compile fileTree(dir: 'myOtherLegacyLibsNotYetConverted/lib', include: '*.jar')
compile 'org.springframework:spring-tx:3.1.2.RELEASE'
compile 'org.springframework:spring-jms:3.1.2.RELEASE'
compile 'org.springframework:spring-jdbc:3.1.2.RELEASE'
(...)
testCompile "junit:junit:4.11"
testCompile fileTree(dir: "legacyBuild/test-lib", include: "*.jar")
(...)
providedCompile "javax.servlet:servlet-api:2.5"
providedCompile "javax.servlet.jsp:jsp-api:2.2"
}
将它们添加到 IntelliJ 的 IDE 类路径中的最简单/推荐的方法是什么,以便我的所有交互式编译器和测试都具有所需的所有类依赖项?每次更改时都可以同步吗?
我们也非常感谢能够在 Eclipse 中进行微小更改的灵活解决方案。
【问题讨论】:
标签: java intellij-idea gradle