Spring-boot: Provide instructions for downgrading to Hibernate 4.3 when using Gradle

Created on 29 Jul 2016  路  2Comments  路  Source: spring-projects/spring-boot

The documentation explains how to downgrade to Hibernate 4.3 for Maven, but not for Gradle. I tried excluding hibernate-core and hibernate-entitymanager from data-jpa and many other dependencies, but it doesn't work. What's the magic formula? 馃

documentation

Most helpful comment

You can downgrade by using below in gradle

plugins {
id "io.spring.dependency-management" version "0.6.0.RELEASE"
}
/* Above plugin is used to override default version in spring boot */
ext['hibernate.version'] = '4.3.11.Final'

This way you can downgrade or upgrade any version

All 2 comments

You can downgrade by using below in gradle

plugins {
id "io.spring.dependency-management" version "0.6.0.RELEASE"
}
/* Above plugin is used to override default version in spring boot */
ext['hibernate.version'] = '4.3.11.Final'

This way you can downgrade or upgrade any version

Indeed, thanks @rajadileepkolli - I've upgraded the release notes Matt.

Was this page helpful?
0 / 5 - 0 ratings