From 1fd41f43eb73c373cb94d32d82c5fb7a7e243367 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Tue, 1 Dec 2015 23:59:11 +0100 Subject: Add build toolchain to upload LibreOffice API to Maven Central Set up the toolchain to create sources and javadocs artifacts in addition to JARs created during the build. Use Buck build tool for that: [1]. This is a fork of Google's build tool Blaze, created by Xooglers at Facebook. This build tool (like Blaze itself) uses Python to write build files. Add needed tools and build files to install LibreOffice API artifacts to local Maven repository or deploy them to Maven Central. To build all needed artifacts LibreOffice must be built regularly with GNU make first. To build the rest of the API (sources and javadocs): $> buck build api To replace version number with upcoming release version: $> solenv/bin/version.py 5.1.0 To install the API to local Maven repository: $> buck build api_install To deploy the API to Maven Central: $> buck build api_deploy Detailed documentation is added to document the prerequisites and the workflow to upload LibreOffice API to Maven Central. * [1] https://buckbuild.com Change-Id: Ibdd552a01110836703bc069abe829b9921491cac Reviewed-on: https://gerrit.libreoffice.org/20343 Reviewed-by: Thorsten Behrens Tested-by: Thorsten Behrens --- unoil/BUCK | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 unoil/BUCK (limited to 'unoil/BUCK') diff --git a/unoil/BUCK b/unoil/BUCK new file mode 100644 index 000000000000..e84663c81d4f --- /dev/null +++ b/unoil/BUCK @@ -0,0 +1,21 @@ +genrule( + name = 'unoil-src', + cmd = ' && '.join([ + 'cd $TMP', + 'echo "FAKE SOURCE ARCHIVE" > README', + 'zip -qr $OUT *', + ]), + out = 'unoil-src.jar', + visibility = ['PUBLIC'], +) + +genrule( + name = 'unoil-javadoc', + cmd = ' && '.join([ + 'cd $TMP', + 'echo "FAKE JAVADOC ARCHIVE" > README', + 'zip -qr $OUT *', + ]), + out = 'unoil-javadoc.jar', + visibility = ['PUBLIC'], +) -- cgit