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?
The task you're looking for is publishToMavenLocal
. And instead of build -x test
you can use assemble
.
./gradlew assemble publishToMavenLocal
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.