From 812686e1bcd12b94635ecc4ef4e3095d5ef93781 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 19 Dec 2016 11:16:00 -0500 Subject: [PATCH] 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 --- build.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index a46f0cbc..c935ee16 100644 --- a/build.gradle +++ b/build.gradle @@ -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'