A Multi-module project has modules with the following dependency: web->core->persistence
I added spring-boot-gradle-plugin to web module:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE")
}
}
apply plugin: 'spring-boot'
As spring-boot-gradle-plugin downloads old hibernate versions, i have duplicates in the persistence module.
I tried to override hibernate dependencies in the web module and it's working:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE")
}
}
apply plugin: 'spring-boot'
dependencies {
compile project(':core')
//Other dependencies
compile "org.hibernate:hibernate-core:${hibernateVersion}"
compile "org.hibernate:hibernate-validator:${hibernateValidatorVersion}"
compile "org.hibernate:hibernate-entitymanager:${hibernateVersion}"
}
Why does the plugin download old hibernate version? Is there any possibility to exclude old hibernate versions from spring-boot-gradle-plugin?