Difference between revisions of "OpenOffice Gradle Integration"

From Apache OpenOffice Wiki
Jump to: navigation, search
(created OpenOffice Gradle Integration page)
 
(added getting started section)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
[http://gradle.org Gradle] is a modern build framework for Java and Groovy applications and is released under the Apache 2.0 License. Gradle build scripts are written in Groovy rather than XML. Gradle manages the project dependencies which are fetched from local or remote Maven or Ivy repositories or Gradle can use local files as well.
+
[http://gradle.org Gradle] is a modern build framework for Java and [http:groovy.apache.org Apache Groovy] applications and is released under the Apache 2.0 License. Gradle build scripts are written in Groovy rather than XML. Gradle manages the project dependencies which are fetched from local or remote Maven or Ivy repositories or Gradle can use local files as well.
  
 
There a few parallel efforts to this with the first being a Groovy UNO Extension that adds convenience methods to the Java UNO API's that allow much less code when using Groovy compared to Java.  
 
There a few parallel efforts to this with the first being a Groovy UNO Extension that adds convenience methods to the Java UNO API's that allow much less code when using Groovy compared to Java.  
  
 
The second effort is [https://github.com/pledbrook/lazybones Lazybones] templates to create Gradle build based UNO Extensions.  
 
The second effort is [https://github.com/pledbrook/lazybones Lazybones] templates to create Gradle build based UNO Extensions.  
Lazybones is a project creation tool that allows you to create a new project structure for any framework or library for which the tool has a template. The first and only template completed so far is for an OpenOffice Client.
+
Lazybones is a project creation tool that allows you to create a new project structure for any framework or library for which the tool has a template. The first and only template completed so far is for an OpenOffice Client. Lazybones is release under the Apache 2.0 License.
 +
 
 +
== Getting Started ==
 +
 
 +
A convenient method of getting Gradle, Groovy, and Lazybones is to use [http://sdkman.io SdkMan].
 +
SdkMan is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates. SdkMan is released under the Apache 2.0 License.
 +
 
 +
On UNIX based machines enter the following at the command prompt:
 +
    curl -s http://get.sdkman.io | bash
 +
See the [http://sdkman.io SdkMan website] for a link to a windows version.
 +
 
 +
To install the latest version of Lazybones:
 +
    sdk install lazybones
 +
 
 +
Repeat if needed for Groovy and Gradle:
 +
    sdk install groovy
 +
    sdk install gradle
 +
 
 +
See [http://sdkman.io/usage.html SdkMan Usage] for all SdkMan commands to list and change default versions.
 +
Current versions are:
 +
* gradle: 2.7
 +
* groovy: 2.4.5
 +
* lazybones: 0.8.1
 +
 
  
 
[[Category:API]]
 
[[Category:API]]
 
[[Category:Effort]]
 
[[Category:Effort]]

Revision as of 00:01, 5 January 2016

Overview

Gradle is a modern build framework for Java and [http:groovy.apache.org Apache Groovy] applications and is released under the Apache 2.0 License. Gradle build scripts are written in Groovy rather than XML. Gradle manages the project dependencies which are fetched from local or remote Maven or Ivy repositories or Gradle can use local files as well.

There a few parallel efforts to this with the first being a Groovy UNO Extension that adds convenience methods to the Java UNO API's that allow much less code when using Groovy compared to Java.

The second effort is Lazybones templates to create Gradle build based UNO Extensions. Lazybones is a project creation tool that allows you to create a new project structure for any framework or library for which the tool has a template. The first and only template completed so far is for an OpenOffice Client. Lazybones is release under the Apache 2.0 License.

Getting Started

A convenient method of getting Gradle, Groovy, and Lazybones is to use SdkMan. SdkMan is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates. SdkMan is released under the Apache 2.0 License.

On UNIX based machines enter the following at the command prompt:

   curl -s http://get.sdkman.io | bash 

See the SdkMan website for a link to a windows version.

To install the latest version of Lazybones:

   sdk install lazybones

Repeat if needed for Groovy and Gradle:

   sdk install groovy
   sdk install gradle

See SdkMan Usage for all SdkMan commands to list and change default versions. Current versions are:

  • gradle: 2.7
  • groovy: 2.4.5
  • lazybones: 0.8.1
Personal tools