Git Product home page Git Product logo

hibernate-orm's Introduction

How to build

Starting with development of version 4.0, Hibernate uses Gradle as its build tool.

This README describes some of the basics developers and contributors new to Gradle need to know to get productive quickly.

Quickstart

 git clone git://github.com/hibernate/hibernate-orm.git
 cd hibernate-orm
 ./gradlew clean build

If you are having problems with unresolved dependencies you need to configure access to the JBoss Nexus repository (see below).

Resources

General

JBoss Nexus

Gradle

Executing Tasks

Gradle uses the concept of build tasks (equivalent to Ant targets). You can get a list of available tasks via

gradle tasks

or if using gradle wrapper

./gradlew tasks

Executing Tasks Across All Modules

To execute a task across all modules, simply perform that task from the root directory. Gradle will visit each subproject and execute that task if the subproject defines it.

Executing Tasks In Specific Module

To execute a task in a specific module you can either:

  1. cd into that module directory and execute the task
  2. name the "task path". For example, in order to run the tests for the hibernate-core module from the root directory you could say gradle hibernate-core:test

Common Java related tasks

  • build - Assembles (jars) and tests this project
  • buildDependents - Assembles and tests this project and all projects that depend on it. So think of running this in hibernate-entitymanager, Gradle would assemble and test hibernate-entitymanager as well as hibernate-envers (because envers depends on entitymanager)
  • classes - Compiles the main classes
  • testClasses - Compiles the test classes
  • jar - Generates a jar archive with all the compiled classes
  • test - Runs the tests
  • uploadArchives - Think Maven deploy
  • install - Installs the project jar to your local maven cache (aka ~/.m2/repository)
  • eclipse - Generates an Eclipse project
  • idea - Generates an IntelliJ/IDEA project.
  • clean - Cleans the build directory

hibernate-orm's People

Contributors

sebersole avatar hferentschik avatar gbadner avatar stliu avatar brmeyer avatar emmanuelbernard avatar adamw avatar lukasz-antoniak avatar sanne avatar galderz avatar scottmarlow avatar jpav avatar gunnarmorling avatar pb00068 avatar edalquist avatar kadishmal avatar valotas avatar sharathjreddy avatar zuchos avatar davidmc24 avatar gsmet avatar rworsnop avatar alexsnaps avatar bvarner avatar andrigtmiller avatar kamii avatar manuelbernhardt avatar beikov avatar gastaldi avatar hchanfreau avatar

Watchers

Trask Stalnaker avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.