我遇到了困扰我的问题。 我使用gradle build spring-boot项目,我想要打包运行时jar。
这是我的依赖:
buildscript {
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.5.RELEASE")
}
}
plugins {
id 'org.springframework.boot' version '1.5.5.RELEASE'
}
dependencies {
....
compile 'org.elasticsearch:elasticsearch:5.0.0'
compile 'org.elasticsearch.client:transport:5.0.0'
....
}
我运行cmd gradle dependencies
:
+--- org.elasticsearch:elasticsearch:5.0.0 -> 2.4.5
| | +--- org.apache.lucene:lucene-core:5.5.4
| | +--- org.apache.lucene:lucene-backward-codecs:5.5.4
| | | \--- org.apache.lucene:lucene-core:5.5.4
| | +--- org.apache.lucene:lucene-analyzers-common:5.5.4
当我删除spring-boot插件时,一切正常。
我更改了spring-boot插件版本。一段时间有一些依赖会改变版本。
请帮我查一下这个问题,谢谢!