To build hibernate (5.5) I do this:
git clone git://github.com/hibernate/hibernate-orm.git ./gradlew build -x test
as a result I have in release/target/distributions two files:
hibernate-release-5.5.0-SNAPSHOT.tgz hibernate-release-5.5.0-SNAPSHOT.zip
These files have binary and source code of the hibernate. However, built jars are not added to local maven repo. Could anyone say how to add them including sources and javadoc?
Advertisement
Answer
The task you’re looking for is publishToMavenLocal
. And instead of build -x test
you can use assemble
.
./gradlew assemble publishToMavenLocal