Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.DoctorGester:hibernate-orm:5.2.10-FIX'
}
dependencies {
implementation("com.github.DoctorGester:hibernate-orm:5.2.10-FIX")
}
<dependency>
<groupId>com.github.DoctorGester</groupId>
<artifactId>hibernate-orm</artifactId>
<version>5.2.10-FIX</version>
</dependency>
libraryDependencies += "com.github.DoctorGester" % "hibernate-orm" % "5.2.10-FIX"
:dependencies [[com.github.DoctorGester/hibernate-orm "5.2.10-FIX"]]
Hibernate ORM is a component/library providing Object/Relational Mapping (ORM) support to applications and other components/libraries. It is also provides an implementation of the JPA specification, which is the standardized Java specification for ORM. See Hibernate.org for additional information.
git clone git://github.com/hibernate/hibernate-orm.git
cd hibernate-orm
./gradlew clean build
The build requires a Java 8 JDK as JAVA_HOME, but will ensure Java 6 compatibility.
Hibernate uses Gradle as its build tool. See the Gradle Primer section below if you are new to Gradle.
Contributors should read the Contributing Guide
See the guides for setting up IntelliJ or Eclipse as your development environment. Building Hibernate ORM is somewhat outdated, but still has
Hibernate makes use of Jenkins for its CI needs. The project is built continuous on each push to the upstream repository. Overall there are a few different jobs, all of which can be seen at http://ci.hibernate.org/view/ORM/
This section describes some of the basics developers and contributors new to Gradle might need to know to get productive quickly. The Gradle documentation is very well done; 2 in particular that are indispensable:
For contributors who do not otherwise use Gradle and do not want to install it, Gradle offers a very cool
features called the wrapper. It lets you run Gradle builds without a previously installed Gradle distro in
a zero-conf manner. Hibernate configures the Gradle wrapper for you. If you would rather use the wrapper and
not install Gradle (or to make sure you use the version of Gradle intended for older builds) you would just use
the command gradlew
(or gradlew.bat
) rather than gradle
(or gradle.bat
) in the following discussions.
Note that gradlew
is only available in the project's root dir, so depending on your pwd
you may need to adjust
the path to gradlew
as well.
Gradle uses the concept of build tasks (equivalent to Ant targets or Maven phases/goals). You can get a list of available tasks via
gradle tasks
To execute a task across all modules, simply perform that task from the root directory. Gradle will visit each sub-project and execute that task if the sub-project defines it. To execute a task in a specific module you can either:
cd
into that module directory and execute the taskgradle hibernate-core:test