Change dependencies order for jpa sample

Since both `hibernate-jpa-2.1-api` and `org.eclipse.persistence.jpa` have similar classes in the same packages ensure that `hibernate-jpa-2.1-api` loads first to meet JPA-2.1 spec requirements in the Hibernate 5.2.5
This commit is contained in:
Artem Bilan
2016-12-19 11:16:00 -05:00
parent 04ef89784f
commit 812686e1bc

View File

@@ -769,10 +769,9 @@ project('jpa') {
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile "org.springframework.integration:spring-integration-jpa:$springIntegrationVersion"
compile "com.h2database:h2:$h2Version"
compile "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:$jpa21ApiVersion"
runtime "org.springframework:spring-instrument:$springVersion"
runtime "org.hibernate:hibernate-entitymanager:$hibernateVersion"
runtime "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:$jpa21ApiVersion"
runtime "org.eclipse.persistence:org.eclipse.persistence.jpa:$eclipseLinkVersion"
testCompile 'org.springframework.boot:spring-boot-starter-test'