Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-12-03 | Add build toolchain to upload LibreOffice API to Maven Central | David Ostrovsky | 1 | -60/+0 | |
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 <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> | |||||
2013-11-02 | Set up tool chain to install LO artifacts in Maven repositories | David Ostrovsky | 1 | -0/+60 | |
Add <path_to_libo>/bin to your path. After full LO compile, the LO Java artifacts can be installed in the local Maven repository: mvn.py -a install -v 4.2.0 -s juh:jar:<path_to>/juh.jar mvn.py -a install -v 4.2.0 -s jurt:jar:<path_to>/jurt.jar mvn.py -a install -v 4.2.0 -s ridl:jar:<path_to>/ridl.jar mvn.py -a install -v 4.2.0 -s unoil:jar:<path_to>/unoil.jar With the artifacts installed this way, it is now possible to consume LO artifacts from custom pom.xml: [...] <properties> <LibreOffice-Version>4.2.0</LibreOffice-Version> </properties> [...] <dependencies> <dependency> <groupId>org.libreoffice</groupId> <artifactId>juh</artifactId> <version>${LibreOffice-Version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.libreoffice</groupId> <artifactId>jurt</artifactId> <version>${LibreOffice-Version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.libreoffice</groupId> <artifactId>ridl</artifactId> <version>${LibreOffice-Version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.libreoffice</groupId> <artifactId>unoil</artifactId> <version>${LibreOffice-Version}</version> <scope>provided</scope> </dependency> </dependencies> Change-Id: I2ad982ae23c78242ed8f1ac4c88c6be424cc7a0d Reviewed-on: https://gerrit.libreoffice.org/6453 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> |