从Spring Boot 1.1.5升级到1.1.6后,gradle构建失败,并在:bootRepackage任务中出现“Duplicate library commons-io-1.3.2.jar”

时间:2014-09-10 18:16:26

标签: java gradle spring-boot

我将Spring Boot从1.1.5升级到1.1.6,之后,我的(多项目)构建失败了:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':admin:bootRepackage'.
> Duplicate library commons-io-1.3.2.jar

所有其他任务似乎都已成功(compileJava,compileGroovy,processResources,classes,jar和distJar)。我在build.gradle文件中对Commons I / O库有一个显式依赖:

compile group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'

我正在使用Gradle 2.1,但尝试使用2.0进行构建没有任何区别。我运行gradle依赖,但它没有透露任何特别有趣的东西。自升级以来有没有人见过这个?回到1.1.5解决了这个问题,所以我猜测它与Spring Boot jar中的新依赖关系1.1.6有关。任何有关决议的提示都会受到赞赏。

1 个答案:

答案 0 :(得分:1)

听起来你发现了this issue修复程序导致的错误。你能否请open an issue了解你的依赖关系的详细信息,以便我们可以追踪它?