svn commit: r1753886 - in /ofbiz/trunk: build.gradle specialpurpose/birt/build.gradle specialpurpose/birt/lib/

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

svn commit: r1753886 - in /ofbiz/trunk: build.gradle specialpurpose/birt/build.gradle specialpurpose/birt/lib/

Taher Alkhateeb
Author: taher
Date: Sun Jul 24 07:25:13 2016
New Revision: 1753886

URL: http://svn.apache.org/viewvc?rev=1753886&view=rev
Log:
Migrate the BIRT component fully to remote libs - OFBIZ-7534

This commit fully moves BIRT to remote libs. After a lot of
investigation we realized there were two offending dependencies
that prevented BIRT from working (Derby, and a PDF dependency).
Once these two dependencies were excluded BIRT successfully
compiled and all tests ran. I did some further manual testing
of BIRT and all HTML and PDF reports seem to render correctly.

This resolves what I consider the most difficult component
to migrate to remote libs.

Added:
    ofbiz/trunk/specialpurpose/birt/build.gradle
Removed:
    ofbiz/trunk/specialpurpose/birt/lib/
Modified:
    ofbiz/trunk/build.gradle

Modified: ofbiz/trunk/build.gradle
URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.gradle?rev=1753886&r1=1753885&r2=1753886&view=diff
==============================================================================
--- ofbiz/trunk/build.gradle (original)
+++ ofbiz/trunk/build.gradle Sun Jul 24 07:25:13 2016
@@ -57,7 +57,7 @@ configurations {
 }
 
 dependencies {
-    // general framework libs
+    // general framework compile libs
     compile 'apache-xerces:resolver:2.9.1'
     compile 'apache-xerces:xercesImpl:2.9.1'
     compile 'avalon-framework:avalon-framework-impl:4.2.0'
@@ -177,9 +177,10 @@ dependencies {
     compile 'xalan:xalan:2.7.2'
     compile 'xml-apis:xml-apis-ext:1.3.04'
     compile 'xml-apis:xml-apis:1.4.01'
-    compile 'mysql:mysql-connector-java:5.1.36'
-    compile 'postgresql:postgresql:9.0-801.jdbc4'
 
+    // general framework runtime libs
+    runtime 'mysql:mysql-connector-java:5.1.36'
+    runtime 'postgresql:postgresql:9.0-801.jdbc4'
 
     // plugin libs
     subprojects.each { subProject ->

Added: ofbiz/trunk/specialpurpose/birt/build.gradle
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/birt/build.gradle?rev=1753886&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/birt/build.gradle (added)
+++ ofbiz/trunk/specialpurpose/birt/build.gradle Sun Jul 24 07:25:13 2016
@@ -0,0 +1,6 @@
+dependencies {
+    pluginLibsCompile('org.eclipse.birt.runtime:viewservlets:4.5.0') {
+        exclude group: 'org.eclipse.birt.runtime.3_7_1', module: 'derby'
+        exclude group: 'org.eclipse.birt.runtime.3_7_1', module: 'org.apache.batik.pdf'
+    }
+}
\ No newline at end of file