[jira] [Updated] (OFBIZ-7534) Migrate OFBiz from Apache Ant to Gradle build system

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-7534) Migrate OFBiz from Apache Ant to Gradle build system

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-7534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taher Alkhateeb updated OFBIZ-7534:
-----------------------------------
    Attachment: OFBIZ-7534.patch

Ok, attaching a new updated patch which has the following improvements:

- First, change testInteg to testIntegration. Gradle has cool shortcuts so you can call this task with ./gradlew tI .. so no need to keep names very short

- Introduced the gradle eclipse plugin. Now the files .plugin and .classpath are automatically generated from gradle with a simple command: ./gradlew eclipse

- Added two new server command patterns. ofbizBackground and ofbizBackgroundSecure. These two patterns allow you to execute OFBiz commands in the background and to redirect output runtime/logs/console.log. I did this with a hack using the ProcessBuilder API

- deleted a line that breaks the build from framework/common/src/org/ofbiz/common/email/EmailServices.java. This line calls legacy Java code which is no longer necessary (I think since JDK 1.4)

- updated the documentation to reflect all the above

As usual, you need to copy the gradle-wrapper.jar file to gradle/wrapper/ for everything to work correctly in addition to applying the patch

> Migrate OFBiz from Apache Ant to Gradle build system
> ----------------------------------------------------
>
>                 Key: OFBIZ-7534
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7534
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Upcoming Branch
>            Reporter: Taher Alkhateeb
>            Assignee: Taher Alkhateeb
>              Labels: ant, build-tools, gradle
>         Attachments: ANT_GRADLE_COMPARISON.txt, OFBIZ-7534.patch, OFBIZ-7534.patch, OFBIZ-7534.patch, build.gradle, gradle-wrapper.jar
>
>
> This is a major refactoring task referring to the [email thread|http://ofbiz.markmail.org/message/vstt3wxuubmjgmqj?q=Important+Changes+to+Trunk+and+Use+of+Ant+%26+Gradle] in which the community voted for the switch after a proposal from the PMC
> The purpose of this JIRA is to achieve the following objectives
> - Fully implement a working compiling system in Gradle that passes all tests
> - Remove all ant and maven build scripts from the system
> - update the documentation of the system to reflect these changes



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)