How to upgrade Hibernate to Play?

Game frames have an old version of Hibernate (3.6.1). How to update Hibernate in the Play app? Through Ivy?

Following the recommendations of Pere, I tried:

require: - play - org.hibernate -> hibernate-core 3.6.8 force: true repositories: - jboss: type: http root: "http://repository.jboss.org/nexus/content/groups/public/" contains: - org.jboss -> * - org.jboss.javaee -> * - org.hibernate -> * 

But nothing happens. When I look at the Ivy cache directory, Hibernate 3.6.8 does not exist, and it seems that nothing is happening at all.

+4
source share
3 answers

Thanks to Pere Villegas answer, I found a solution to update Hibernate from Play:

 require: - play - org.hibernate -> hibernate-core 3.6.9.Final: force: true - org.hibernate -> hibernate-validator 4.2.0.Final repositories: - jboss: type: iBiblio root: "https://repository.jboss.org/nexus/content/groups/public" contains: - org.jboss -> * - org.jboss.javaee -> * - org.hibernate -> * 
+1
source

You can force the new version as indicated here (note: I have not tested this, and I cannot correctly at the moment).

you must add thsi your dependencies .yml

  - org.hibernate -> hibernate-core 3.6.1 force: true 

Replace the version number with the version of your choice. The strength of the flag should override the default values โ€‹โ€‹used in Play

EDIT:

You may need to specify a JBoss repository, see Stephano's comment:

I strictly followed the examples of maven2's dependence on games and added org.jboss โ†’ * AND org.jboss.javaee โ†’ * and it works fine

+3
source

It seems that Play comes with hibernate out of the box, but has no strong dependencies on it, so you should just replace the sleep libraries.

See Play Without JPA / Hibernate? from Play google group .

I am not an expert, so I would confirm this on this list.

0
source

Source: https://habr.com/ru/post/1383814/


All Articles